com.amazonaws.mturk.service.axis
Class WorkQueue

java.lang.Object
  extended by com.amazonaws.mturk.service.axis.WorkQueue

public class WorkQueue
extends java.lang.Object

Axis work queue that controls the calls to the service endpoint using a thread pool


Constructor Summary
WorkQueue()
           
 
Method Summary
static int getNumberOfCompletedRequests()
          Returns the number of requests completed in the work queue
static int getNumberOfPendingRequests()
          Returns the current number of pending requests in the queue
static int getNumberOfThreads()
          Returns the number of worker threads
static AsyncReply submit(AsyncRequest request)
          Submits a request to the work queue for execution against the requester service endpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkQueue

public WorkQueue()
Method Detail

submit

public static AsyncReply submit(AsyncRequest request)
Submits a request to the work queue for execution against the requester service endpoint


getNumberOfPendingRequests

public static int getNumberOfPendingRequests()
Returns the current number of pending requests in the queue


getNumberOfCompletedRequests

public static int getNumberOfCompletedRequests()
Returns the number of requests completed in the work queue


getNumberOfThreads

public static int getNumberOfThreads()
Returns the number of worker threads