Enhydra 5.1 API

org.enhydra.servlet.debug
Class ServletRecordQueue

java.lang.Object
  |
  +--org.enhydra.servlet.debug.ServletRecordQueue

public class ServletRecordQueue
extends java.lang.Object


Constructor Summary
protected ServletRecordQueue(int queueSize)
          Construct a new queue.
 
Method Summary
protected  ServletTransactionRecord addRecord(ServletTransactionRecord transactionRecord)
          Add a record to the queue; if this forces a record out, it is returned.
protected  void clear()
          Clear all entries from the queue.
protected  void dumpContents(ServletRecordCallback callback)
          FIX: I need javadoc
protected  ServletTransactionRecord findById(int transactionId)
          Find an entry in the queue based on tranaction record id.
 java.util.Enumeration getContents()
          Get the current contents of the queue.
 int size()
          Get the current number of items in the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletRecordQueue

protected ServletRecordQueue(int queueSize)
Construct a new queue.

Parameters:
queueSize - maximum number of servlet transaction records that can be queued at a given time.
Method Detail

size

public int size()
Get the current number of items in the queue.

Returns:
The current number of records in the queue.

addRecord

protected ServletTransactionRecord addRecord(ServletTransactionRecord transactionRecord)
Add a record to the queue; if this forces a record out, it is returned.

Parameters:
transactionRecord - the record to add to the queue.
Returns:
the transaction record that was removed from the queue, or null if an entry was not removed.

clear

protected void clear()
Clear all entries from the queue.


findById

protected ServletTransactionRecord findById(int transactionId)
Find an entry in the queue based on tranaction record id.

Parameters:
transactionId - unique number identifying the desired transaction record.
Returns:
a transaction record or null if the transaction is no longer in the queue.

dumpContents

protected void dumpContents(ServletRecordCallback callback)
FIX: I need javadoc

Parameters:
callback - FIX: ???

getContents

public java.util.Enumeration getContents()
Get the current contents of the queue.

Returns:
An Enumeration that lists the current contents of the queue.

Enhydra 5.1 API