public class RequestQueue extends Object implements Configurable
Constructor and Description |
---|
RequestQueue() |
Modifier and Type | Method and Description |
---|---|
protected void |
add(ServerRequest request)
Adds a request to this queue.
|
protected void |
addRequestQueueListener(RequestQueueListener listener)
Adds the request queue listener.
|
void |
configure(Configuration myConfiguration) |
protected StringPair[] |
deliverContent()
Deliver content.
|
protected ServerRequest |
getFirst()
Used by the RequestController - gets the first element
|
protected boolean |
isEmpty()
Used by the RequestController - checks if is empty.
|
protected ServerRequest |
removeFirst()
Used by the RequestController - removes the first.
|
protected ServerRequest |
removeLast()
Used by the RequestController - removes the last.
|
protected void |
removeRequestQueueListener(RequestQueueListener listener)
Removes the request queue listener.
|
protected int |
size()
Size.
|
public void configure(Configuration myConfiguration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
protected void add(ServerRequest request) throws ResourceLimitReachedException
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.request
- the requestResourceLimitReachedException
- the resource limit reached
exceptionprotected void addRequestQueueListener(RequestQueueListener listener)
listener
- the listenerprotected StringPair[] deliverContent()
protected ServerRequest getFirst()
protected boolean isEmpty()
protected ServerRequest removeFirst()
protected ServerRequest removeLast()
protected void removeRequestQueueListener(RequestQueueListener listener)
listener
- the listenerprotected int size()
Copyright © 2017 JacORB. All rights reserved.