Package org.alfresco.repo.action
Class AsynchronousActionExecutionQueueImpl
java.lang.Object
org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl
- All Implemented Interfaces:
AsynchronousActionExecutionQueue
public class AsynchronousActionExecutionQueueImpl
extends Object
implements AsynchronousActionExecutionQueue
The asynchronous action execution queue implementation
- Author:
- Roy Wetherall
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassTransaction listener used to invoke callback policies -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteAction(RuntimeActionService actionService, Action action, NodeRef actionedUponNodeRef, boolean checkConditions, Set<String> actionChain) voidexecuteAction(RuntimeActionService actionService, Action action, NodeRef actionedUponNodeRef, boolean checkConditions, Set<String> actionChain, NodeRef actionExecutionHistoryNodeRef) voidinit()Init method.voidThis method registers an action filter, which can be used to prevent unwanted or unnecessary asynchronous actions from being scheduled for execution.voidsetActionServiceImpl(ActionServiceImpl serviceImpl) voidsetAuthenticationContext(AuthenticationContext authenticationContext) Deprecated.Not used since 3.4voidvoidsetPolicyComponent(PolicyComponent policyComponent) Set the policy componentvoidsetThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor) Set the thread pool, which may be shared with other components, that will be used to run the actions.voidsetTransactionService(TransactionService transactionService) Set the transaction service
-
Constructor Details
-
AsynchronousActionExecutionQueueImpl
public AsynchronousActionExecutionQueueImpl()Default constructor
-
-
Method Details
-
init
public void init()Init method. Registers the policies. -
setActionServiceImpl
- Since:
- Thor Phase 2 Sprint 2
-
setId
- Since:
- Thor Phase 2 Sprint 2
-
setThreadPoolExecutor
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
Set the transaction service- Parameters:
transactionService- the transaction service
-
setAuthenticationContext
Deprecated.Not used since 3.4 -
setPolicyComponent
Set the policy component- Parameters:
policyComponent- policy component
-
registerActionFilter
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, NodeRef actionedUponNodeRef, boolean checkConditions, Set<String> actionChain) - Specified by:
executeActionin interfaceAsynchronousActionExecutionQueue- Parameters:
actionService- RuntimeActionServiceaction- ActionactionedUponNodeRef- NodeRefcheckConditions- boolean
-
executeAction
-