java.lang.Object
recoin.system.session.SessionQueue
- public class SessionQueue
- extends java.lang.Object
A SessionQueue provides storage for and access to a number of RetrievalSession objects.
Essentially, the SessionQueue behaves like a Vector. This class might be extended
in future releases.
- Version:
- 0.2.9
|
Constructor Summary |
SessionQueue()
Creates a new SessionQueue with unlimited capacity. |
SessionQueue(int cap)
Creates a new SessionQueue with the specified size. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
capacity
private int capacity
- Maximum size of this SessionQueue.
If NULL the capacity is unlimited.
sessions
protected java.util.Vector sessions
- The RetrievalSession objects.
SessionQueue
public SessionQueue(int cap)
- Creates a new SessionQueue with the specified size.
SessionQueue
public SessionQueue()
- Creates a new SessionQueue with unlimited capacity.
addSession
void addSession(RetrievalSession rSession)
- Adds the specified RetrievalSession the this SessionQueue.
removeSession
void removeSession(RetrievalSession rSession)
- Removes the specified RetrievalSession from this SessionQueue.