net.sf.farrago.util
Interface FarragoObjectCache.Entry

All Superinterfaces:
ClosableAllocation, FarragoAllocation
All Known Implementing Classes:
FarragoCacheEntry
Enclosing class:
FarragoObjectCache

public static interface FarragoObjectCache.Entry
extends FarragoAllocation

Interface for a cache entry; same as Map.Entry except that there is no requirement on equals/hashCode. This interface is implemented by FarragoObjectCache; callers are shielded from direct access to the entry representation.

Entry extends FarragoAllocation; its closeAllocation implementation calls FarragoObjectCache.unpin(net.sf.farrago.util.FarragoObjectCache.Entry).


Method Summary
 Object getKey()
           
 Object getValue()
           
 
Methods inherited from interface org.eigenbase.util.ClosableAllocation
closeAllocation
 

Method Detail

getKey

Object getKey()
Returns:
the key of this entry (as passed to the FarragoObjectCache.pin(java.lang.Object, net.sf.farrago.util.FarragoObjectCache.CachedObjectFactory, boolean) method).

getValue

Object getValue()
Returns:
the value cached by this entry (as set by FarragoObjectCache.UninitializedEntry.initialize(java.lang.Object, long, boolean)).