| Constructor and Description |
|---|
SingleQueueExecutorImpl2(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
enqueue(Runnable r)
This method queues an item to be worked on
by the worker.
|
boolean |
isShutdown() |
void |
shutdownAfterProcessingCurrentlyQueuedTasks()
Terminate background thread after it processes all elements
currently in queue.
|
void |
shutdownNow()
Terminate background thread even if it is currently processing a task.
|
public SingleQueueExecutorImpl2(String name)
public void enqueue(Runnable r)
Workerpublic void shutdownAfterProcessingCurrentlyQueuedTasks()
WorkershutdownAfterProcessingCurrentlyQueuedTasks in interface Workerpublic void shutdownNow()
WorkershutdownNow in interface Workerpublic boolean isShutdown()
isShutdown in interface WorkerCopyright 2004-2020 Solace Corporation. All rights reserved.