public class WorkflowInstanceExecutor extends Object
| Constructor and Description |
|---|
WorkflowInstanceExecutor(int maxQueueSize,
int threadCount,
int notifyThreshold,
int awaitTerminationSeconds,
int keepAliveSeconds,
ThreadFactory threadFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable runnable) |
int |
getQueueRemainingCapacity() |
int |
getThreadCount() |
void |
shutdown() |
void |
waitUntilQueueSizeLowerThanThreshold(org.joda.time.DateTime waitUntil) |
void |
wakeUpDispatcherIfNeeded() |
public WorkflowInstanceExecutor(int maxQueueSize,
int threadCount,
int notifyThreshold,
int awaitTerminationSeconds,
int keepAliveSeconds,
ThreadFactory threadFactory)
public int getThreadCount()
public void waitUntilQueueSizeLowerThanThreshold(org.joda.time.DateTime waitUntil)
throws InterruptedException
InterruptedExceptionpublic void wakeUpDispatcherIfNeeded()
public void execute(Runnable runnable)
public int getQueueRemainingCapacity()
public void shutdown()
Copyright © 2014–2020 Nitor Creations. All rights reserved.