|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.store.AbstractStore
net.sf.ehcache.store.FrontEndCacheTier<NullStore,MemoryStore>
net.sf.ehcache.store.MemoryOnlyStore
public final class MemoryOnlyStore
A memory-only store with support for all caching features.
Field Summary |
---|
Fields inherited from class net.sf.ehcache.store.FrontEndCacheTier |
---|
authority, cache |
Fields inherited from interface net.sf.ehcache.store.Store |
---|
CLUSTER_COHERENT, NODE_COHERENT |
Method Summary | ||
---|---|---|
static Store |
create(Ehcache cache,
Pool onHeapPool)
Create an instance of MemoryStore |
|
Results |
executeQuery(StoreQuery query)
Execute the given query on this store |
|
Policy |
getInMemoryEvictionPolicy()
{inheritDoc} |
|
Object |
getMBean()
Optional implementation specific MBean exposed by the store. |
|
|
getSearchAttribute(String attributeName)
Retrieve the given named search attribute |
|
void |
setAttributeExtractors(Map<String,AttributeExtractor> extractors)
Inform this store of the configured attribute extractors. |
|
void |
setInMemoryEvictionPolicy(Policy policy)
{inheritDoc} |
Methods inherited from class net.sf.ehcache.store.AbstractStore |
---|
addStoreListener, getAll, getAllQuiet, getEventListenerList, isCacheCoherent, isClusterCoherent, isNodeCoherent, putAll, removeAll, removeStoreListener, setNodeCoherent, waitUntilClusterCoherent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Store create(Ehcache cache, Pool onHeapPool)
cache
- the cacheonHeapPool
- the on heap pool
public void setInMemoryEvictionPolicy(Policy policy)
setInMemoryEvictionPolicy
in interface Store
setInMemoryEvictionPolicy
in class FrontEndCacheTier<NullStore,MemoryStore>
policy
- the new policypublic Policy getInMemoryEvictionPolicy()
getInMemoryEvictionPolicy
in interface Store
getInMemoryEvictionPolicy
in class FrontEndCacheTier<NullStore,MemoryStore>
Store.setInMemoryEvictionPolicy(Policy)
public void setAttributeExtractors(Map<String,AttributeExtractor> extractors)
setAttributeExtractors
in interface Store
setAttributeExtractors
in class AbstractStore
public Results executeQuery(StoreQuery query)
executeQuery
in interface Store
executeQuery
in class AbstractStore
query
- query to execute
public <T> Attribute<T> getSearchAttribute(String attributeName) throws CacheException
getSearchAttribute
in interface Store
getSearchAttribute
in class AbstractStore
T
- type of the attributeattributeName
- the name of the attribute to retrieve
CacheException
public Object getMBean()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |