org.apache.openejb.util
Class Pool.Entry

java.lang.Object
  extended by org.apache.openejb.util.Pool.Entry
Enclosing class:
Pool<T>

public class Pool.Entry
extends Object


Nested Class Summary
 class Pool.Entry.Instance
          Exists for the garbage collection related callbacks
 
Method Summary
 T get()
           
 long getUsed()
           
 void harden()
           
 boolean hasHardReference()
          Largely for testing purposes
 void markLastUsed()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

get

public T get()

harden

public void harden()

markLastUsed

public void markLastUsed()

getUsed

public long getUsed()

hasHardReference

public boolean hasHardReference()
Largely for testing purposes

Returns:
true if this entry is in the "min" pool

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.