|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.store.compound.factories.InMemoryFactory
public class InMemoryFactory
A simple unlimited capacity in-memory proxy factory.
Constructor Summary | |
---|---|
InMemoryFactory()
|
Method Summary | |
---|---|
void |
bind(CompoundStore store)
Bind a store instance to this factory. |
Element |
create(Object key,
Element element)
A no-op encode that just returns the unmodified element. |
boolean |
created(Object object)
Returns true if this factory created the given object. |
void |
free(Lock exclusion,
Element element)
Nothing to free, so a no-op. |
Element |
retrieve(Object key,
Element element)
A no-op decode that just returns the unmodified element. |
void |
unbind(CompoundStore store)
Unbinds a store instance from this factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InMemoryFactory()
Method Detail |
---|
public void bind(CompoundStore store)
store
- store to bindpublic void unbind(CompoundStore store)
store
- store to unbindpublic Element retrieve(Object key, Element element)
key
- key to which this element is mappedelement
- Element or ElementSubstitute to retrieve
public Element create(Object key, Element element)
key
- key to which this element is mappedelement
- Element to encode
public void free(Lock exclusion, Element element)
element
- Element or ElementSubstitute being free'd.public 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 |