public interface Worker
| 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.
|
void enqueue(Runnable r)
r - Object to queue.void shutdownAfterProcessingCurrentlyQueuedTasks()
void shutdownNow()
boolean isShutdown()
Copyright 2004-2019 Solace Corporation. All rights reserved.