public interface WorkQueue
Modifier and Type | Method and Description |
---|---|
void |
addWork(Work aWorkItem)
This method is used to add work to the WorkQueue
|
long |
averageTimeInQueue()
Returns the average time a work item is waiting in the queue before
getting processed.
|
String |
getName()
This method will return the name of the WorkQueue.
|
ThreadPool |
getThreadPool()
Get the ThreadPool instance servicing this WorkQueue
|
void |
setThreadPool(ThreadPool aThreadPool)
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.
|
void addWork(Work aWorkItem)
String getName()
long totalWorkItemsAdded()
int workItemsInQueue()
long averageTimeInQueue()
void setThreadPool(ThreadPool aThreadPool)
ThreadPool getThreadPool()
Copyright © 2016 JBoss by Red Hat. All rights reserved.