Package com.sun.corba.ee.spi.threadpool
Interface WorkQueue
-
- All Known Implementing Classes:
WorkQueueImpl
public interface WorkQueue
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addWork(Work aWorkItem)
This method is used to add work to the WorkQueuelong
averageTimeInQueue()
Returns the average time a work item is waiting in the queue before getting processed.java.lang.String
getName()
This method will return the name of the WorkQueue.ThreadPool
getThreadPool()
Get the ThreadPool instance servicing this WorkQueuevoid
setThreadPool(ThreadPool aThreadPool)
Set the ThreadPool instance servicing this WorkQueuelong
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.
-
-
-
Method Detail
-
addWork
void addWork(Work aWorkItem)
This method is used to add work to the WorkQueue
-
getName
java.lang.String getName()
This method will return the name of the WorkQueue.
-
totalWorkItemsAdded
long totalWorkItemsAdded()
Returns the total number of Work items added to the Queue.
-
workItemsInQueue
int workItemsInQueue()
Returns the total number of Work items in the Queue to be processed.
-
averageTimeInQueue
long averageTimeInQueue()
Returns the average time a work item is waiting in the queue before getting processed.
-
setThreadPool
void setThreadPool(ThreadPool aThreadPool)
Set the ThreadPool instance servicing this WorkQueue
-
getThreadPool
ThreadPool getThreadPool()
Get the ThreadPool instance servicing this WorkQueue
-
-