public class MemoryOnlyStore extends FrontEndCacheTier<NullStore,MemoryStore>
Modifier and Type | Class and Description |
---|---|
protected static class |
MemoryOnlyStore.BruteForceSearchManager
Brute force search implementation
|
Modifier and Type | Field and Description |
---|---|
private static java.lang.Object[] |
EMPTY_OBJECT_ARRAY |
authority, cache
attributeExtractors
CLUSTER_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
|
(package private) java.util.Collection<Element> |
elementSet()
Get the underyling memory store element set
|
Element |
get(java.lang.Object key)
Gets an item from the cache.
|
Policy |
getInMemoryEvictionPolicy() |
java.lang.Object |
getMBean()
Optional implementation specific MBean exposed by the store.
|
Element |
getQuiet(java.lang.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, unpinAll
addStoreListener, executeQuery, getAll, getAllQuiet, getEventListenerList, getSearchAttribute, isCacheCoherent, isClusterCoherent, isNodeCoherent, putAll, removeAll, removeStoreListener, setAttributeExtractors, setNodeCoherent, waitUntilClusterCoherent
protected 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 pooljava.util.Collection<Element> elementSet()
public Element get(java.lang.Object key)
get
in interface Store
get
in class FrontEndCacheTier<NullStore,MemoryStore>
public Element getQuiet(java.lang.Object key)
Element
from the Store, without updating statisticsgetQuiet
in interface Store
getQuiet
in class FrontEndCacheTier<NullStore,MemoryStore>
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 java.lang.Object getMBean()