Class WorkflowInstanceExecutor
- java.lang.Object
-
- io.nflow.engine.internal.executor.WorkflowInstanceExecutor
-
public class WorkflowInstanceExecutor extends Object
-
-
Constructor Summary
Constructors Constructor Description WorkflowInstanceExecutor(int maxQueueSize, int threadCount, int notifyThreshold, int awaitTerminationSeconds, int keepAliveSeconds, ThreadFactory threadFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Runnable runnable)intgetQueueRemainingCapacity()intgetThreadCount()voidshutdown()voidwaitUntilQueueSizeLowerThanThreshold(org.joda.time.DateTime waitUntil)voidwakeUpDispatcherIfNeeded()
-
-
-
Constructor Detail
-
WorkflowInstanceExecutor
public WorkflowInstanceExecutor(int maxQueueSize, int threadCount, int notifyThreshold, int awaitTerminationSeconds, int keepAliveSeconds, ThreadFactory threadFactory)
-
-
Method Detail
-
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(Runnable runnable)
-
getQueueRemainingCapacity
public int getQueueRemainingCapacity()
-
shutdown
public void shutdown()
-
-