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
  • Constructor Details

    • AsynchronousActionExecutionQueueImpl

      public AsynchronousActionExecutionQueueImpl()
      Default constructor
  • Method Details

    • 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(String id)
      Since:
      Thor Phase 2 Sprint 2
    • setThreadPoolExecutor

      public void setThreadPoolExecutor(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, NodeRef actionedUponNodeRef, boolean checkConditions, Set<String> actionChain)
      Specified by:
      executeAction in interface AsynchronousActionExecutionQueue
      Parameters:
      actionService - RuntimeActionService
      action - Action
      actionedUponNodeRef - NodeRef
      checkConditions - boolean
    • executeAction

      public void executeAction(RuntimeActionService actionService, Action action, NodeRef actionedUponNodeRef, boolean checkConditions, Set<String> actionChain, NodeRef actionExecutionHistoryNodeRef)