org.globus.wsrf.container
Class ServiceRequestQueue
java.lang.Object
org.globus.wsrf.container.ServiceRequestQueue
public class ServiceRequestQueue
- extends java.lang.Object
queue managing multithreaded request enqueuing and dequeueing
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final org.apache.commons.logging.Log logger
requests
private java.util.LinkedList requests
waitingThreads
private int waitingThreads
semaphore
private Semaphore semaphore
ServiceRequestQueue
public ServiceRequestQueue()
dequeue
public ServiceRequest dequeue()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
addWaitingThread
private void addWaitingThread()
removeWaitingThread
private void removeWaitingThread()
enqueue
public int enqueue(ServiceRequest request)
stopThreads
public void stopThreads(int threads)