Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

recoin.system.session
Class SessionQueue  view SessionQueue download SessionQueue.java

java.lang.Object
  extended byrecoin.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

Field Summary
private  int capacity
          Maximum size of this SessionQueue.
protected  java.util.Vector sessions
          The RetrievalSession objects.
 
Constructor Summary
SessionQueue()
          Creates a new SessionQueue with unlimited capacity.
SessionQueue(int cap)
          Creates a new SessionQueue with the specified size.
 
Method Summary
(package private)  void addSession(RetrievalSession rSession)
          Adds the specified RetrievalSession the this SessionQueue.
(package private)  void removeSession(RetrievalSession rSession)
          Removes the specified RetrievalSession from this SessionQueue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

capacity

private int capacity
Maximum size of this SessionQueue. If NULL the capacity is unlimited.


sessions

protected java.util.Vector sessions
The RetrievalSession objects.

Constructor Detail

SessionQueue

public SessionQueue(int cap)
Creates a new SessionQueue with the specified size.


SessionQueue

public SessionQueue()
Creates a new SessionQueue with unlimited capacity.

Method Detail

addSession

void addSession(RetrievalSession rSession)
Adds the specified RetrievalSession the this SessionQueue.


removeSession

void removeSession(RetrievalSession rSession)
Removes the specified RetrievalSession from this SessionQueue.