|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IdentityElementSubstituteFactory
IdentityElementProxyFactory is implemented by all non-proxying factories.
Non-proxying factories are used to implement direct in-heap storage of Elements. Their encode methods will typically (but not necessarily) return the same element as was passed to them. They may however choose to perform eviction operations either synchronously within their methods, or trigger asynchronous evictions from them.
Method Summary | |
---|---|
void |
bind(CompoundStore store)
Bind a store instance to this factory. |
T |
create(Object key,
Element element)
Creates a substitute for the supplied Element |
boolean |
created(Object object)
Returns true if this factory created the given object. |
void |
free(Lock exclusion,
T object)
Free any manually managed resources used by this Element or
ElementSubstitute . |
Element |
retrieve(Object key,
T object)
Retrieves the supplied Element or ElementSubstitute . |
void |
unbind(CompoundStore store)
Unbinds a store instance from this factory |
Method Detail |
---|
void bind(CompoundStore store)
store
- store to bindvoid unbind(CompoundStore store)
store
- store to unbindT create(Object key, Element element)
Element
In the case that this element is no longer mapped to a key - if for example the element is being decoded following a removal - then the supplied key will be null.
key
- key to which this element is mappedelement
- Element to encode
Element retrieve(Object key, T object)
Element
or ElementSubstitute
.
key
- key to which this element is mappedobject
- Element or ElementSubstitute to retrieve
void free(Lock exclusion, T object)
Element
or
ElementSubstitute
.
object
- Element or ElementSubstitute being free'd.boolean created(Object object)
true
if this factory created the given object.
object
- object to check
true
if object created by this factory
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |