org.jacorb.poa
Class RequestQueue
java.lang.Object
org.jacorb.poa.RequestQueue
- Configurable
public class RequestQueue
extends java.lang.Object
implements Configurable
This class manages a queue of ServerRequest objects.
Version:
- Reimo Tiedemann, FU Berlin
add
protected void add(ServerRequest request)
throws ResourceLimitReachedException
Adds a request to this queue. The properties
jacorb.poa.queue_{min,max,wait}
specify what happens
when the queue is full, i.e. when it already contains
queue_max
requests. If queue_wait
is
off, then this method does not add the request and throws a
ResourceLimitReachedException
. If queue_wait
is on, then this method blocks until no more than
queue_min
requests are in the queue; it then adds the
request, and returns.
configure
public void configure(Configuration myConfiguration)
throws ConfigurationException
deliverContent
protected StringPair[] deliverContent()
getElementAndRemove
protected ServerRequest getElementAndRemove(int rid)
isEmpty
protected boolean isEmpty()