public class LocalReadsAndExceptionOnWritesTimeoutStore extends Object implements TerracottaStore
CLUSTER_COHERENT, NODE_COHERENT| Constructor and Description |
|---|
LocalReadsAndExceptionOnWritesTimeoutStore() |
LocalReadsAndExceptionOnWritesTimeoutStore(TerracottaStore delegate)
Constructor accepting the
TerracottaStore |
public LocalReadsAndExceptionOnWritesTimeoutStore(TerracottaStore delegate)
TerracottaStorepublic LocalReadsAndExceptionOnWritesTimeoutStore()
public int getInMemorySize()
getInMemorySize in interface Storepublic int getOffHeapSize()
getOffHeapSize in interface Storepublic int getOnDiskSize()
getOnDiskSize in interface Storepublic int getTerracottaClusteredSize()
getTerracottaClusteredSize in interface Storepublic long getInMemorySizeInBytes()
getInMemorySizeInBytes in interface Storepublic long getOffHeapSizeInBytes()
getOffHeapSizeInBytes in interface Storepublic long getOnDiskSizeInBytes()
getOnDiskSizeInBytes in interface Storepublic boolean hasAbortedSizeOf()
hasAbortedSizeOf in interface Storepublic boolean containsKey(Object key)
containsKey in interface Storepublic boolean containsKeyOnDisk(Object key)
containsKeyOnDisk in interface Storepublic boolean containsKeyOffHeap(Object key)
containsKeyOffHeap in interface Storepublic boolean containsKeyInMemory(Object key)
containsKeyInMemory in interface Storepublic boolean bufferFull()
bufferFull in interface Storepublic Policy getInMemoryEvictionPolicy()
getInMemoryEvictionPolicy in interface Storepublic Results executeQuery(StoreQuery query) throws SearchException
executeQuery in interface StoreSearchExceptionpublic Set<Attribute> getSearchAttributes()
getSearchAttributes in interface Storepublic <T> Attribute<T> getSearchAttribute(String attributeName)
getSearchAttribute in interface Storepublic Map<Object,Element> getAllQuiet(Collection<?> keys)
getAllQuiet in interface Storepublic Map<Object,Element> getAll(Collection<?> keys)
public Object getInternalContext()
getInternalContext in interface Storepublic boolean isCacheCoherent()
isCacheCoherent in interface Storepublic boolean isClusterCoherent()
throws TerracottaNotRunningException
isClusterCoherent in interface StoreTerracottaNotRunningExceptionpublic boolean isNodeCoherent()
throws TerracottaNotRunningException
isNodeCoherent in interface StoreTerracottaNotRunningExceptionpublic void waitUntilClusterCoherent()
throws UnsupportedOperationException,
TerracottaNotRunningException,
InterruptedException
waitUntilClusterCoherent in interface StoreUnsupportedOperationExceptionTerracottaNotRunningExceptionInterruptedExceptionpublic Element unsafeGet(Object key)
unsafeGet in interface TerracottaStorepublic void quickClear()
quickClear in interface TerracottaStorepublic int quickSize()
quickSize in interface TerracottaStorepublic Set getLocalKeys()
getLocalKeys in interface TerracottaStorepublic CacheConfiguration.TransactionalMode getTransactionalMode()
getTransactionalMode in interface TerracottaStorepublic boolean put(Element element) throws IllegalArgumentException, IllegalStateException, CacheException
put in interface StoreIllegalArgumentExceptionIllegalStateExceptionCacheExceptionpublic void putAll(Collection<Element> elements) throws CacheException
putAll in interface StoreCacheExceptionpublic Element remove(Object key) throws IllegalStateException
remove in interface StoreIllegalStateExceptionpublic void removeAll(Collection<?> keys) throws IllegalStateException
removeAll in interface StoreIllegalStateExceptionpublic void removeAll()
throws IllegalStateException,
CacheException
removeAll in interface StoreIllegalStateExceptionCacheExceptionpublic void flush()
throws IllegalStateException,
CacheException,
IOException
flush in interface StoreIllegalStateExceptionCacheExceptionIOExceptionpublic Element putIfAbsent(Element element) throws NullPointerException
putIfAbsent in interface StoreNullPointerExceptionpublic Element replace(Element element) throws NullPointerException
replace in interface StoreNullPointerExceptionpublic void addStoreListener(StoreListener listener)
addStoreListener in interface Storepublic void expireElements()
expireElements in interface Storepublic boolean putWithWriter(Element element, CacheWriterManager writerManager) throws CacheException
putWithWriter in interface StoreCacheExceptionpublic Element removeElement(Element element, ElementValueComparator comparator) throws NullPointerException
removeElement in interface StoreNullPointerExceptionpublic void removeStoreListener(StoreListener listener)
removeStoreListener in interface Storepublic Element removeWithWriter(Object key, CacheWriterManager writerManager) throws CacheException
removeWithWriter in interface StoreCacheExceptionpublic boolean replace(Element old, Element element, ElementValueComparator comparator) throws NullPointerException, IllegalArgumentException
replace in interface StoreNullPointerExceptionIllegalArgumentExceptionpublic void setAttributeExtractors(Map<String,AttributeExtractor> extractors)
setAttributeExtractors in interface Storepublic void setInMemoryEvictionPolicy(Policy policy)
setInMemoryEvictionPolicy in interface Storepublic void setNodeCoherent(boolean coherent)
throws UnsupportedOperationException
setNodeCoherent in interface StoreUnsupportedOperationExceptionpublic 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.