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 java.lang.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()
           
 java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object


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