|
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 class MemoryOnlyStore
A memory-only store with support for all caching features.
| Nested Class Summary | |
|---|---|
protected static class |
MemoryOnlyStore.BruteForceSearchManager
Brute force search implementation |
| Field Summary |
|---|
| Fields inherited from class net.sf.ehcache.store.FrontEndCacheTier |
|---|
authority, cache |
| Fields inherited from class net.sf.ehcache.store.AbstractStore |
|---|
attributeExtractors |
| Fields inherited from interface net.sf.ehcache.store.Store |
|---|
CLUSTER_COHERENT, NODE_COHERENT |
| Constructor Summary | |
|---|---|
protected |
MemoryOnlyStore(CacheConfiguration cacheConfiguration,
MemoryStore authority,
SearchManager searchManager)
Create a MemoryOnlyStore |
| Method Summary | |
|---|---|
static Store |
create(Ehcache cache,
Pool onHeapPool)
Create an instance of MemoryOnlyStore |
Element |
get(Object key)
Gets an item from the cache. |
Policy |
getInMemoryEvictionPolicy()
|
Object |
getMBean()
Optional implementation specific MBean exposed by the store. |
Element |
getQuiet(Object key)
Gets an Element from the Store, without updating statistics |
void |
setInMemoryEvictionPolicy(Policy policy)
Sets the eviction policy strategy. |
| Methods inherited from class net.sf.ehcache.store.AbstractStore |
|---|
addStoreListener, executeQuery, getAll, getAllQuiet, getEventListenerList, getSearchAttribute, isCacheCoherent, isClusterCoherent, isNodeCoherent, putAll, removeAll, removeStoreListener, setAttributeExtractors, setNodeCoherent, waitUntilClusterCoherent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MemoryOnlyStore(CacheConfiguration cacheConfiguration,
MemoryStore authority,
SearchManager searchManager)
cacheConfiguration - the cache configurationauthority - the memory store| Method Detail |
|---|
public static Store create(Ehcache cache,
Pool onHeapPool)
cache - the cacheonHeapPool - the on heap pool
public Element get(Object key)
get in interface Storeget in class FrontEndCacheTier<NullStore,MemoryStore>public Element getQuiet(Object key)
Element from the Store, without updating statistics
getQuiet in interface StoregetQuiet in class FrontEndCacheTier<NullStore,MemoryStore>public void setInMemoryEvictionPolicy(Policy policy)
setInMemoryEvictionPolicy in interface StoresetInMemoryEvictionPolicy in class FrontEndCacheTier<NullStore,MemoryStore>policy - the new policypublic Policy getInMemoryEvictionPolicy()
getInMemoryEvictionPolicy in interface StoregetInMemoryEvictionPolicy in class FrontEndCacheTier<NullStore,MemoryStore>Store.setInMemoryEvictionPolicy(Policy)public Object getMBean()
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||