| Modifier and Type | Field and Description |
|---|---|
static String |
WORKQUEUE_DEFAULT_NAME |
| Constructor and Description |
|---|
WorkQueueImpl() |
WorkQueueImpl(ThreadPool workerThreadPool) |
WorkQueueImpl(ThreadPool workerThreadPool,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWork(Work work)
This method is used to add work to the WorkQueue
|
long |
averageTimeInQueue()
Returns the average amount Work items have spent in the Queue waiting
to be processed.
|
String |
getName()
This method will return the name of the WorkQueue.
|
ThreadPool |
getThreadPool()
Get the ThreadPool instance servicing this WorkQueue
|
void |
setThreadPool(ThreadPool workerThreadPool)
Set the ThreadPool instance servicing this WorkQueue
|
long |
totalWorkItemsAdded()
Returns the total number of Work items added to the Queue.
|
int |
workItemsInQueue()
Returns the total number of Work items in the Queue to be processed.
|
public static final String WORKQUEUE_DEFAULT_NAME
public WorkQueueImpl()
public WorkQueueImpl(ThreadPool workerThreadPool)
public WorkQueueImpl(ThreadPool workerThreadPool, String name)
public void addWork(Work work)
WorkQueuepublic void setThreadPool(ThreadPool workerThreadPool)
WorkQueuesetThreadPool in interface WorkQueuepublic ThreadPool getThreadPool()
WorkQueuegetThreadPool in interface WorkQueue@ManagedAttribute @Description(value="Total number of items added to the queue") public long totalWorkItemsAdded()
totalWorkItemsAdded in interface WorkQueue@ManagedAttribute @Description(value="Total number of items in the queue to be processed") public int workItemsInQueue()
workItemsInQueue in interface WorkQueue@ManagedAttribute @Description(value="Average time work items spend waiting in the queue in milliseconds") public long averageTimeInQueue()
averageTimeInQueue in interface WorkQueueCopyright © 2017–2019 Eclipse Foundation. All rights reserved.