org.alfresco.repo.action
Class AsynchronousActionExecutionQueueImpl

java.lang.Object
  extended by org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl
All Implemented Interfaces:
AsynchronousActionExecutionQueue

public class AsynchronousActionExecutionQueueImpl
extends java.lang.Object
implements AsynchronousActionExecutionQueue

The asynchronous action execution queue implementation


Nested Class Summary
 class AsynchronousActionExecutionQueueImpl.CallbackTransactionListener
          Transaction listener used to invoke callback policies
 
Constructor Summary
AsynchronousActionExecutionQueueImpl()
          Default constructor
 
Method Summary
 void executeAction(RuntimeActionService actionService, Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, boolean checkConditions, java.util.Set actionChain)
          
 void executeAction(RuntimeActionService actionService, Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, boolean checkConditions, java.util.Set actionChain, org.alfresco.service.cmr.repository.NodeRef actionExecutionHistoryNodeRef)
          
 void init()
          Init method.
 void registerActionFilter(AbstractAsynchronousActionFilter filter)
          This method registers an action filter, which can be used to prevent unwanted or unnecessary asynchronous actions from being scheduled for execution.
 void setAuthenticationContext(AuthenticationContext authenticationContext)
          Deprecated. Not used since 3.4
 void setPolicyComponent(PolicyComponent policyComponent)
          Set the policy component
 void setThreadPoolExecutor(java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
          Set the thread pool, which may be shared with other components, that will be used to run the actions.
 void setTransactionService(TransactionService transactionService)
          Set the transaction service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousActionExecutionQueueImpl

public AsynchronousActionExecutionQueueImpl()
Default constructor

Method Detail

init

public void init()
Init method. Registers the policies.


setThreadPoolExecutor

public void setThreadPoolExecutor(java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
Set the thread pool, which may be shared with other components, that will be used to run the actions.

Parameters:
threadPoolExecutor - the thread pool

setTransactionService

public void setTransactionService(TransactionService transactionService)
Set the transaction service

Parameters:
transactionService - the transaction service

setAuthenticationContext

public void setAuthenticationContext(AuthenticationContext authenticationContext)
Deprecated. Not used since 3.4


setPolicyComponent

public void setPolicyComponent(PolicyComponent policyComponent)
Set the policy component

Parameters:
policyComponent - policy component

registerActionFilter

public void registerActionFilter(AbstractAsynchronousActionFilter filter)
This method registers an action filter, which can be used to prevent unwanted or unnecessary asynchronous actions from being scheduled for execution.

Parameters:
filter - the filter implementation.

executeAction

public void executeAction(RuntimeActionService actionService,
                          Action action,
                          org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
                          boolean checkConditions,
                          java.util.Set actionChain)

Specified by:
executeAction in interface AsynchronousActionExecutionQueue

executeAction

public void executeAction(RuntimeActionService actionService,
                          Action action,
                          org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
                          boolean checkConditions,
                          java.util.Set actionChain,
                          org.alfresco.service.cmr.repository.NodeRef actionExecutionHistoryNodeRef)



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.