net.sf.farrago.util
Interface FarragoObjectCache.UninitializedEntry
- All Known Implementing Classes:
- FarragoCacheEntry
- Enclosing class:
- FarragoObjectCache
public static interface FarragoObjectCache.UninitializedEntry
Callback interface for entry initialization.
Method Summary |
void |
initialize(Object value,
long memoryUsage,
boolean isReusable)
Initializes the entry. |
initialize
void initialize(Object value,
long memoryUsage,
boolean isReusable)
- Initializes the entry.
- Parameters:
value
- the value to associate with the entry's key; if this
Object implements FarragoAllocation, it will be closed when discarded
from the cachememoryUsage
- approximate total number of bytes of memory used
by entry (combination of key, value, and any sub-objects)isReusable
- whether the initialized entry is reusable; if
false, the entry will be returned as private to the original caller
of FarragoObjectCache.pin(java.lang.Object, net.sf.farrago.util.FarragoObjectCache.CachedObjectFactory, boolean)
, and no other callers will ever be able to pin it