de.bea.domingo.proxy
Class NotesRecycleQueue

java.lang.Object
  extended by de.bea.domingo.proxy.NotesRecycleQueue
All Implemented Interfaces:
Queue

public final class NotesRecycleQueue
extends java.lang.Object
implements Queue

Queue of Notes objects to be recycled.

Notes objects are queued with a priority defined by their class in this decreasing order:

Session, Database, View, Collection, Document, Entry, Item, others

Author:
Kurt Riede

Constructor Summary
NotesRecycleQueue()
          Constructor.
 
Method Summary
 java.lang.Object dequeue()
          Dequeues an object from the queue.
 void enqueue(java.lang.Object obj)
          Enqueues an object to the queue.
 boolean isEmpty()
          Checks is the queue is empty or not.
 int size()
          Returns the number of objects in the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotesRecycleQueue

public NotesRecycleQueue()
Constructor.

Method Detail

size

public int size()
Returns the number of objects in the queue.

Specified by:
size in interface Queue
Returns:
number of objects in the queue

isEmpty

public boolean isEmpty()
Checks is the queue is empty or not.

Specified by:
isEmpty in interface Queue
Returns:
true if the queue is empty, else false

enqueue

public void enqueue(java.lang.Object obj)
Enqueues an object to the queue.

Specified by:
enqueue in interface Queue
Parameters:
obj - the object to enqueue

dequeue

public java.lang.Object dequeue()
Dequeues an object from the queue.

Specified by:
dequeue in interface Queue
Returns:
next object from the queue or null if the queue is empty


Domingo Java-API