| Constructor and Description |
|---|
SingleWorkerQueue(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 SingleWorkerQueue(String name)
public void enqueue(Runnable r)
Workerenqueue in interface Workerr - Object to queue.Worker.enqueue(java.lang.Runnable)public void shutdownAfterProcessingCurrentlyQueuedTasks()
WorkershutdownAfterProcessingCurrentlyQueuedTasks in interface WorkerWorker.shutdownAfterProcessingCurrentlyQueuedTasks()public void shutdownNow()
WorkershutdownNow in interface WorkerWorker.shutdownNow()public boolean isShutdown()
isShutdown in interface WorkerCopyright 2004-2021 Solace Corporation. All rights reserved.