public final class ExceptionOnTimeoutStore extends Object implements TerracottaStore
TerracottaStore that throws NonStopCacheException for all operations.CLUSTER_COHERENT, NODE_COHERENTpublic static ExceptionOnTimeoutStore getInstance()
public Element get(Object key) throws IllegalStateException, CacheException
Throws NonStopCacheException
get in interface StoreIllegalStateExceptionCacheExceptionpublic Element getQuiet(Object key) throws IllegalStateException, CacheException
getQuiet in interface StoreIllegalStateExceptionCacheExceptionpublic Map<Object,Element> getAllQuiet(Collection<?> keys)
Throws NonStopCacheException
getAllQuiet in interface Storepublic Map<Object,Element> getAll(Collection<?> keys)
Throws NonStopCacheException
public List getKeys() throws IllegalStateException, CacheException
Throws NonStopCacheException
getKeys in interface StoreIllegalStateExceptionCacheExceptionpublic boolean put(Element element) throws IllegalArgumentException, IllegalStateException, CacheException
Throws NonStopCacheException
put in interface StoreIllegalArgumentExceptionIllegalStateExceptionCacheExceptionpublic void putAll(Collection<Element> elements) throws CacheException
Throws NonStopCacheException
putAll in interface StoreCacheExceptionpublic Element remove(Object key) throws IllegalStateException
Throws NonStopCacheException
remove in interface StoreIllegalStateExceptionpublic void removeAll(Collection<?> keys) throws IllegalStateException
Throws NonStopCacheException
removeAll in interface StoreIllegalStateExceptionpublic void removeAll()
throws IllegalStateException,
CacheException
Throws NonStopCacheException
removeAll in interface StoreIllegalStateExceptionCacheExceptionpublic void flush()
throws IllegalStateException,
CacheException
Throws NonStopCacheException
flush in interface StoreIllegalStateExceptionCacheExceptionpublic Object getInternalContext()
Throws NonStopCacheException
getInternalContext in interface Storepublic int getSize()
throws IllegalStateException,
CacheException
Throws NonStopCacheException
getSize in interface StoreIllegalStateExceptionCacheExceptionpublic Element putIfAbsent(Element element) throws NullPointerException
Throws NonStopCacheException
putIfAbsent in interface StoreNullPointerExceptionpublic Element replace(Element element) throws NullPointerException
Throws NonStopCacheException
replace in interface StoreNullPointerExceptionpublic void addStoreListener(StoreListener listener)
Throws NonStopCacheException
addStoreListener in interface Storepublic boolean bufferFull()
Throws NonStopCacheException
bufferFull in interface Storepublic boolean containsKey(Object key)
Throws NonStopCacheException
containsKey in interface Storepublic boolean containsKeyInMemory(Object key)
Throws NonStopCacheException
containsKeyInMemory in interface Storepublic boolean containsKeyOffHeap(Object key)
Throws NonStopCacheException
containsKeyOffHeap in interface Storepublic boolean containsKeyOnDisk(Object key)
Throws NonStopCacheException
containsKeyOnDisk in interface Storepublic void dispose()
Throws NonStopCacheException
public Results executeQuery(StoreQuery query)
Throws NonStopCacheException
executeQuery in interface Storepublic void expireElements()
Throws NonStopCacheException
expireElements in interface Storepublic Policy getInMemoryEvictionPolicy()
Throws NonStopCacheException
getInMemoryEvictionPolicy in interface Storepublic int getInMemorySize()
Throws NonStopCacheException
getInMemorySize in interface Storepublic long getInMemorySizeInBytes()
Throws NonStopCacheException
getInMemorySizeInBytes in interface Storepublic Object getMBean()
Throws NonStopCacheException
public int getOffHeapSize()
Throws NonStopCacheException
getOffHeapSize in interface Storepublic long getOffHeapSizeInBytes()
Throws NonStopCacheException
getOffHeapSizeInBytes in interface Storepublic int getOnDiskSize()
Throws NonStopCacheException
getOnDiskSize in interface Storepublic long getOnDiskSizeInBytes()
Throws NonStopCacheException
getOnDiskSizeInBytes in interface Storepublic boolean hasAbortedSizeOf()
Throws NonStopCacheException
hasAbortedSizeOf in interface Storepublic Status getStatus()
Throws NonStopCacheException
public int getTerracottaClusteredSize()
Throws NonStopCacheException
getTerracottaClusteredSize in interface Storepublic boolean isCacheCoherent()
Throws NonStopCacheException
isCacheCoherent in interface Storepublic boolean isClusterCoherent()
Throws NonStopCacheException
isClusterCoherent in interface Storepublic boolean isNodeCoherent()
Throws NonStopCacheException
isNodeCoherent in interface Storepublic boolean putWithWriter(Element element, CacheWriterManager writerManager) throws CacheException
Throws NonStopCacheException
putWithWriter in interface StoreCacheExceptionpublic Element removeElement(Element element, ElementValueComparator comparator) throws NullPointerException
Throws NonStopCacheException
removeElement in interface StoreNullPointerExceptionpublic void removeStoreListener(StoreListener listener)
Throws NonStopCacheException
removeStoreListener in interface Storepublic Element removeWithWriter(Object key, CacheWriterManager writerManager) throws CacheException
Throws NonStopCacheException
removeWithWriter in interface StoreCacheExceptionpublic boolean replace(Element old, Element element, ElementValueComparator comparator) throws NullPointerException, IllegalArgumentException
Throws NonStopCacheException
replace in interface StoreNullPointerExceptionIllegalArgumentExceptionpublic void setAttributeExtractors(Map<String,AttributeExtractor> extractors)
Throws NonStopCacheException
setAttributeExtractors in interface Storepublic void setInMemoryEvictionPolicy(Policy policy)
Throws NonStopCacheException
setInMemoryEvictionPolicy in interface Storepublic void setNodeCoherent(boolean coherent)
throws UnsupportedOperationException
Throws NonStopCacheException
setNodeCoherent in interface StoreUnsupportedOperationExceptionpublic void waitUntilClusterCoherent()
throws UnsupportedOperationException
Throws NonStopCacheException
waitUntilClusterCoherent in interface StoreUnsupportedOperationExceptionpublic Set<Attribute> getSearchAttributes()
getSearchAttributes in interface Storepublic <T> Attribute<T> getSearchAttribute(String attributeName)
Throws NonStopCacheException
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.