public class MemoryOnlyStore extends FrontEndCacheTier<NullStore,MemoryStore>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MemoryOnlyStore.BruteForceSearchManager
Brute force search implementation
|
authority, cacheattributeExtractorsCLUSTER_COHERENT, NODE_COHERENT| Modifier | Constructor and Description |
|---|---|
protected |
MemoryOnlyStore(CacheConfiguration cacheConfiguration,
MemoryStore authority,
SearchManager searchManager)
Create a MemoryOnlyStore
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
bufferFull, containsKey, containsKeyInMemory, containsKeyOffHeap, containsKeyOnDisk, copyElementForReadIfNeeded, copyElementForWriteIfNeeded, dispose, expireElements, flush, getAllLocks, getInMemorySize, getInMemorySizeInBytes, getInternalContext, getKeys, getLockFor, getOffHeapSize, getOffHeapSizeInBytes, getOnDiskSize, getOnDiskSizeInBytes, getSize, getStatus, getTerracottaClusteredSize, hasAbortedSizeOf, isCached, isEvictionCandidate, isPinned, notifyEvictionFromCache, put, putIfAbsent, putWithWriter, recalculateSize, remove, removeAll, removeElement, removeWithWriter, replace, replace, setPinned, unpinAlladdStoreListener, executeQuery, getAll, getAllQuiet, getEventListenerList, getSearchAttribute, isCacheCoherent, isClusterCoherent, isNodeCoherent, putAll, removeAll, removeStoreListener, setAttributeExtractors, setNodeCoherent, waitUntilClusterCoherentprotected MemoryOnlyStore(CacheConfiguration cacheConfiguration, MemoryStore authority, SearchManager searchManager)
cacheConfiguration - the cache configurationauthority - the memory storepublic static Store create(Ehcache cache, Pool onHeapPool)
cache - the cacheonHeapPool - the on heap poolpublic Element get(Object key)
get in interface Storeget in class FrontEndCacheTier<NullStore,MemoryStore>public Element getQuiet(Object key)
Element from the Store, without updating statisticsgetQuiet 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()
Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.