Package org.alfresco.repo.action
Class AsynchronousActionExecutionQueueImpl
- java.lang.Object
-
- org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl
-
- All Implemented Interfaces:
AsynchronousActionExecutionQueue
public class AsynchronousActionExecutionQueueImpl extends java.lang.Object implements AsynchronousActionExecutionQueue
The asynchronous action execution queue implementation- Author:
- Roy Wetherall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAsynchronousActionExecutionQueueImpl.CallbackTransactionListenerTransaction listener used to invoke callback policies
-
Constructor Summary
Constructors Constructor Description AsynchronousActionExecutionQueueImpl()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidexecuteAction(RuntimeActionService actionService, Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, boolean checkConditions, java.util.Set<java.lang.String> actionChain)voidexecuteAction(RuntimeActionService actionService, Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, boolean checkConditions, java.util.Set<java.lang.String> actionChain, org.alfresco.service.cmr.repository.NodeRef actionExecutionHistoryNodeRef)voidinit()Init method.voidregisterActionFilter(AbstractAsynchronousActionFilter filter)This 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.4voidsetId(java.lang.String id)voidsetPolicyComponent(PolicyComponent policyComponent)Set the policy componentvoidsetThreadPoolExecutor(java.util.concurrent.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
-
-
-
Method Detail
-
init
public void init()
Init method. Registers the policies.
-
setActionServiceImpl
public void setActionServiceImpl(ActionServiceImpl serviceImpl)
- Since:
- Thor Phase 2 Sprint 2
-
setId
public void setId(java.lang.String id)
- Since:
- Thor Phase 2 Sprint 2
-
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<java.lang.String> actionChain)
- Specified by:
executeActionin interfaceAsynchronousActionExecutionQueue- Parameters:
actionService- RuntimeActionServiceaction- ActionactionedUponNodeRef- NodeRefcheckConditions- boolean
-
executeAction
public void executeAction(RuntimeActionService actionService, Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, boolean checkConditions, java.util.Set<java.lang.String> actionChain, org.alfresco.service.cmr.repository.NodeRef actionExecutionHistoryNodeRef)
-
-