Class WorkQueueImpl

java.lang.Object
com.sun.corba.se.impl.orbutil.threadpool.WorkQueueImpl
All Implemented Interfaces:
WorkQueue

public class WorkQueueImpl extends Object implements WorkQueue
  • Constructor Details

    • WorkQueueImpl

      public WorkQueueImpl()
    • WorkQueueImpl

      public WorkQueueImpl(ThreadPool workerThreadPool)
    • WorkQueueImpl

      public WorkQueueImpl(ThreadPool workerThreadPool, String name)
  • Method Details

    • addWork

      public void addWork(Work work)
      Description copied from interface: WorkQueue
      This method is used to add work to the WorkQueue
      Specified by:
      addWork in interface WorkQueue
    • setThreadPool

      public void setThreadPool(ThreadPool workerThreadPool)
      Description copied from interface: WorkQueue
      Set the ThreadPool instance servicing this WorkQueue
      Specified by:
      setThreadPool in interface WorkQueue
    • getThreadPool

      public ThreadPool getThreadPool()
      Description copied from interface: WorkQueue
      Get the ThreadPool instance servicing this WorkQueue
      Specified by:
      getThreadPool in interface WorkQueue
    • totalWorkItemsAdded

      public long totalWorkItemsAdded()
      Returns the total number of Work items added to the Queue. This method is unsynchronized and only gives a snapshot of the state when it is called
      Specified by:
      totalWorkItemsAdded in interface WorkQueue
    • workItemsInQueue

      public int workItemsInQueue()
      Returns the total number of Work items in the Queue to be processed This method is unsynchronized and only gives a snapshot of the state when it is called
      Specified by:
      workItemsInQueue in interface WorkQueue
    • averageTimeInQueue

      public long averageTimeInQueue()
      Description copied from interface: WorkQueue
      Returns the average time a work item is waiting in the queue before getting processed.
      Specified by:
      averageTimeInQueue in interface WorkQueue
    • getName

      public String getName()
      Description copied from interface: WorkQueue
      This method will return the name of the WorkQueue.
      Specified by:
      getName in interface WorkQueue