Class WorkflowInstanceExecutor
java.lang.Object
io.nflow.engine.internal.executor.WorkflowInstanceExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowInstanceExecutor(int maxQueueSize, int threadCount, int notifyThreshold, int awaitTerminationSeconds, int keepAliveSeconds, ThreadFactory threadFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(io.nflow.engine.internal.executor.WorkflowStateProcessor runnable) intintbooleanvoidwaitUntilQueueSizeLowerThanThreshold(org.joda.time.DateTime waitUntil) void
-
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
-