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

Quick Search    Search Deep

org.enhydra.servlet.debug
Class ServletRecordQueue  view ServletRecordQueue download ServletRecordQueue.java

java.lang.Object
  extended byorg.enhydra.servlet.debug.ServletRecordQueue

public class ServletRecordQueue
extends java.lang.Object


Nested Class Summary
private  class ServletRecordQueue.QueueEnumerator
          This is a helper class.
 
Field Summary
private  int currentSize
          Current size of queue.
private  ServletTransactionRecord head
          Queue head of transaction records.
private  int maxSize
          Maximum size of queue.
private  int nextTransactionId
          Sequential transaction id to assign.
private  ServletTransactionRecord tail
          Queue tail of transaction records.
 
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
 

Field Detail

maxSize

private int maxSize
Maximum size of queue.


currentSize

private int currentSize
Current size of queue.


head

private ServletTransactionRecord head
Queue head of transaction records.


tail

private ServletTransactionRecord tail
Queue tail of transaction records.


nextTransactionId

private int nextTransactionId
Sequential transaction id to assign.

Constructor Detail

ServletRecordQueue

protected ServletRecordQueue(int queueSize)
Construct a new queue.

Method Detail

size

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


addRecord

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


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.


dumpContents

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


getContents

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