public class LocalReadsOnTimeoutStore extends Object implements TerracottaStore
TerracottaStore implementation that returns the local value in the VM, if present, for get operations and
no-op for put, remove and other operationsCLUSTER_COHERENT, NODE_COHERENT| Constructor and Description |
|---|
LocalReadsOnTimeoutStore(TerracottaStore delegate)
Constructor accepting the
TerracottaStore |
public LocalReadsOnTimeoutStore(TerracottaStore delegate)
TerracottaStorepublic Element get(Object key) throws IllegalStateException, CacheException
Uses the underlying store to get the local value present in the VM
get in interface StoreIllegalStateExceptionCacheExceptionpublic List getKeys() throws IllegalStateException, CacheException
Uses the underlying store to get the local value present in the VM
getKeys in interface StoreIllegalStateExceptionCacheExceptionpublic Element getQuiet(Object key) throws IllegalStateException, CacheException
Uses the underlying store to get the local value present in the VM
getQuiet in interface StoreIllegalStateExceptionCacheExceptionpublic Map<Object,Element> getAllQuiet(Collection<?> keys)
getAllQuiet in interface Storepublic Map<Object,Element> getAll(Collection<?> keys)
public boolean put(Element element) throws IllegalArgumentException, IllegalStateException, CacheException
This is a no-op
put in interface StoreIllegalArgumentExceptionIllegalStateExceptionCacheExceptionpublic void putAll(Collection<Element> elements) throws CacheException
This is a no-op
putAll in interface StoreCacheExceptionpublic Element remove(Object key) throws IllegalStateException
This is a no-op
remove in interface StoreIllegalStateExceptionpublic void removeAll(Collection<?> keys) throws IllegalStateException
This is a no-op
removeAll in interface StoreIllegalStateExceptionpublic void removeAll()
throws IllegalStateException,
CacheException
This is a no-op
removeAll in interface StoreIllegalStateExceptionCacheExceptionpublic void flush()
throws IllegalStateException,
CacheException
This is a no-op
flush in interface StoreIllegalStateExceptionCacheExceptionpublic Object getInternalContext()
This is a no-op and always returns null
getInternalContext in interface Storepublic int getSize()
throws IllegalStateException,
CacheException
getSize in interface StoreIllegalStateExceptionCacheExceptionpublic Element putIfAbsent(Element element) throws NullPointerException
This is a no-op
putIfAbsent in interface StoreNullPointerExceptionpublic Element replace(Element element) throws NullPointerException
This is a no-op
replace in interface StoreNullPointerExceptionpublic void addStoreListener(StoreListener listener)
This is a no-op
addStoreListener in interface Storepublic boolean bufferFull()
This is a no-op
bufferFull in interface Storepublic boolean containsKey(Object key)
This is a no-op
containsKey in interface Storepublic boolean containsKeyInMemory(Object key)
This is a no-op
containsKeyInMemory in interface Storepublic boolean containsKeyOffHeap(Object key)
This is a no-op
containsKeyOffHeap in interface Storepublic boolean containsKeyOnDisk(Object key)
This is a no-op
containsKeyOnDisk in interface Storepublic Results executeQuery(StoreQuery query)
executeQuery in interface Storepublic void expireElements()
This is a no-op
expireElements in interface Storepublic Policy getInMemoryEvictionPolicy()
This is a no-op
getInMemoryEvictionPolicy in interface Storepublic int getInMemorySize()
This is a no-op
getInMemorySize in interface Storepublic long getInMemorySizeInBytes()
This is a no-op
getInMemorySizeInBytes in interface Storepublic int getOffHeapSize()
This is a no-op
getOffHeapSize in interface Storepublic long getOffHeapSizeInBytes()
This is a no-op
getOffHeapSizeInBytes in interface Storepublic int getOnDiskSize()
This is a no-op
getOnDiskSize in interface Storepublic long getOnDiskSizeInBytes()
This is a no-op
getOnDiskSizeInBytes in interface Storepublic boolean hasAbortedSizeOf()
This is a no-op
hasAbortedSizeOf in interface Storepublic int getTerracottaClusteredSize()
This is a no-op
getTerracottaClusteredSize in interface Storepublic boolean isCacheCoherent()
This is a no-op
isCacheCoherent in interface Storepublic boolean isClusterCoherent()
This is a no-op
isClusterCoherent in interface Storepublic boolean isNodeCoherent()
This is a no-op
isNodeCoherent in interface Storepublic boolean putWithWriter(Element element, CacheWriterManager writerManager) throws CacheException
This is a no-op
putWithWriter in interface StoreCacheExceptionpublic Element removeElement(Element element, ElementValueComparator comparator) throws NullPointerException
This is a no-op
removeElement in interface StoreNullPointerExceptionpublic void removeStoreListener(StoreListener listener)
This is a no-op
removeStoreListener in interface Storepublic Element removeWithWriter(Object key, CacheWriterManager writerManager) throws CacheException
This is a no-op
removeWithWriter in interface StoreCacheExceptionpublic boolean replace(Element old, Element element, ElementValueComparator comparator) throws NullPointerException, IllegalArgumentException
This is a no-op
replace in interface StoreNullPointerExceptionIllegalArgumentExceptionpublic void setAttributeExtractors(Map<String,AttributeExtractor> extractors)
This is a no-op
setAttributeExtractors in interface Storepublic void setInMemoryEvictionPolicy(Policy policy)
This is a no-op
setInMemoryEvictionPolicy in interface Storepublic void setNodeCoherent(boolean coherent)
throws UnsupportedOperationException
This is a no-op
setNodeCoherent in interface StoreUnsupportedOperationExceptionpublic void waitUntilClusterCoherent()
throws UnsupportedOperationException
This is a no-op
waitUntilClusterCoherent in interface StoreUnsupportedOperationExceptionpublic Set<Attribute> getSearchAttributes()
getSearchAttributes in interface Storepublic <T> Attribute<T> getSearchAttribute(String attributeName)
getSearchAttribute in interface Storepublic Set getLocalKeys()
getLocalKeys in interface TerracottaStorepublic CacheConfiguration.TransactionalMode getTransactionalMode()
getTransactionalMode in interface TerracottaStorepublic Element unsafeGet(Object key)
unsafeGet in interface TerracottaStorepublic void quickClear()
quickClear in interface TerracottaStorepublic int quickSize()
quickSize in interface TerracottaStorepublic void recalculateSize(Object key)
recalculateSize in interface Storepublic WriteBehind createWriteBehind()
createWriteBehind in interface TerracottaStorepublic void notifyCacheEventListenersChanged()
notifyCacheEventListenersChanged in interface TerracottaStoreCopyright © 2003–2024 Terracotta, Inc.. All rights reserved.