jopt.csp.spi.pool
Class WeakObjectQueue

java.lang.Object
  extended byjopt.csp.spi.pool.WeakObjectQueue

public class WeakObjectQueue
extends java.lang.Object

Pool implementation that releases idle objects during garbage collection


Constructor Summary
WeakObjectQueue()
           
 
Method Summary
 void clear()
          Clears queue data
 java.lang.Object pop()
          Pops an object from the queue or returns null if no objects are in the queue
 void push(java.lang.Object obj)
          Pushes an object onto the queue
 void remove(java.lang.Object obj)
          Removes an object from the queue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakObjectQueue

public WeakObjectQueue()
Method Detail

pop

public java.lang.Object pop()
Pops an object from the queue or returns null if no objects are in the queue


push

public void push(java.lang.Object obj)
Pushes an object onto the queue


remove

public void remove(java.lang.Object obj)
Removes an object from the queue


clear

public void clear()
Clears queue data