Class WorkflowInstanceExecutor

java.lang.Object
io.nflow.engine.internal.executor.WorkflowInstanceExecutor

public class WorkflowInstanceExecutor extends Object
  • Constructor Details

    • WorkflowInstanceExecutor

      public WorkflowInstanceExecutor(int maxQueueSize, int threadCount, int notifyThreshold, int awaitTerminationSeconds, int keepAliveSeconds, ThreadFactory threadFactory)
  • Method Details

    • getThreadCount

      public int getThreadCount()
    • waitUntilQueueSizeLowerThanThreshold

      public void waitUntilQueueSizeLowerThanThreshold(org.joda.time.DateTime waitUntil) throws InterruptedException
      Throws:
      InterruptedException
    • wakeUpDispatcherIfNeeded

      public void wakeUpDispatcherIfNeeded()
    • execute

      public void execute(io.nflow.engine.internal.executor.WorkflowStateProcessor runnable)
    • getQueueRemainingCapacity

      public int getQueueRemainingCapacity()
    • shutdown

      public boolean shutdown(Consumer<List<Long>> clearExecutorIds, boolean allowInterrupt)