Class ExecutorDao

java.lang.Object
io.nflow.engine.internal.dao.ExecutorDao

@Component @Singleton public class ExecutorDao extends Object
Use setter injection because constructor injection may not work when nFlow is used in some legacy systems.
  • Constructor Details

  • Method Details

    • tick

      public boolean tick()
    • getExecutorGroup

      public String getExecutorGroup()
    • getExecutorGroupCondition

      public String getExecutorGroupCondition()
    • getExecutorId

      public int getExecutorId()
    • getMaxWaitUntil

      public org.joda.time.DateTime getMaxWaitUntil()
    • isTransactionSupportEnabled

      @Transactional public boolean isTransactionSupportEnabled()
    • isAutoCommitEnabled

      public boolean isAutoCommitEnabled()
    • updateActiveTimestamp

      public void updateActiveTimestamp()
    • getExecutors

      public List<WorkflowExecutor> getExecutors()
    • markShutdown

      public void markShutdown(boolean graceful)
    • getRecoverableExecutorIds

      public Collection<Integer> getRecoverableExecutorIds()
    • markRecovered

      public void markRecovered(int recoveredExecutorId)
    • deleteExpiredBefore

      public int deleteExpiredBefore(org.joda.time.DateTime expiredBefore)