public class TransactionalExecutorServiceStore extends ExecutorServiceStore
ExecutorServiceStorenonstopConfigurationCLUSTER_COHERENT, NODE_COHERENT| Constructor and Description |
|---|
TransactionalExecutorServiceStore(NonstopActiveDelegateHolder nonstopActiveDelegateHolder,
NonstopConfiguration nonstopConfiguration,
NonstopTimeoutBehaviorStoreResolver timeoutBehaviorResolver,
CacheCluster cacheCluster,
TransactionManagerLookup transactionManagerLookup,
ExplicitLockingContextThreadLocal explicitLockingContextThreadLocal)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key)
A check to see if a key is in the Store.
|
Element |
get(Object key)
Gets an item from the cache.
|
List |
getKeys()
Gets an Array of the keys for all elements in the disk store.
|
Element |
getQuiet(Object key)
Gets an
Element from the Store, without updating statistics |
int |
getSize()
Returns the current local store size
|
int |
getTerracottaClusteredSize()
Returns the current Terracotta clustered store size
|
boolean |
put(Element element)
Puts an item into the store.
|
Element |
putIfAbsent(Element element)
Put an element in the store if no element is currently mapped to the elements key.
|
boolean |
putWithWriter(Element element,
CacheWriterManager writerManager)
Puts an item into the store and the cache writer manager in an atomic operation
|
Element |
remove(Object key)
Removes an item from the cache.
|
void |
removeAll()
Remove all of the elements from the store.
|
Element |
removeElement(Element element,
ElementValueComparator comparator)
Remove the Element mapped to the key for the supplied element if the value of the supplied Element
is equal to the value of the cached Element.
|
Element |
removeWithWriter(Object key,
CacheWriterManager writerManager)
Removes an item from the store and the cache writer manager in an atomic operation.
|
Element |
replace(Element element)
Replace the cached element only if an Element is currently cached for this key
|
boolean |
replace(Element old,
Element element,
ElementValueComparator comparator)
Replace the cached element only if the value of the current Element is equal to the value of the
supplied old Element.
|
addStoreListener, bufferFull, clusterRejoined, containsKeyInMemory, containsKeyOffHeap, containsKeyOnDisk, dispose, executeClusterOperation, executeClusterOperationNoTimeout, executeQuery, executeWithExecutor, executeWithExecutor, expireElements, flush, getAll, getAllQuiet, getInMemoryEvictionPolicy, getInMemorySize, getInMemorySizeInBytes, getInternalContext, getLocalKeys, getMBean, getOffHeapSize, getOffHeapSizeInBytes, getOnDiskSize, getOnDiskSizeInBytes, getSearchAttribute, getStatus, getTransactionalMode, hasAbortedSizeOf, isCacheCoherent, isClusterCoherent, isNodeCoherent, isPinned, putAll, recalculateSize, removeAll, removeStoreListener, resolveTimeoutBehaviorStore, setAttributeExtractors, setInMemoryEvictionPolicy, setNodeCoherent, setPinned, underlyingTerracottaStore, unlockedGet, unlockedGetQuiet, unpinAll, unsafeGet, unsafeGetQuiet, waitUntilClusterCoherentpublic TransactionalExecutorServiceStore(NonstopActiveDelegateHolder nonstopActiveDelegateHolder, NonstopConfiguration nonstopConfiguration, NonstopTimeoutBehaviorStoreResolver timeoutBehaviorResolver, CacheCluster cacheCluster, TransactionManagerLookup transactionManagerLookup, ExplicitLockingContextThreadLocal explicitLockingContextThreadLocal)
explicitLockingContextThreadLocal - public boolean put(Element element) throws CacheException
put in interface Storeput in class ExecutorServiceStoreCacheExceptionpublic boolean putWithWriter(Element element, CacheWriterManager writerManager) throws CacheException
putWithWriter in interface StoreputWithWriter in class ExecutorServiceStoreCacheExceptionpublic Element get(Object key)
get in interface Storeget in class ExecutorServiceStorepublic Element getQuiet(Object key)
Element from the Store, without updating statistics..getQuiet in interface StoregetQuiet in class ExecutorServiceStorepublic List getKeys()
getKeys in interface StoregetKeys in class ExecutorServiceStoreSerializable keyspublic Element remove(Object key)
remove in interface Storeremove in class ExecutorServiceStorepublic Element removeWithWriter(Object key, CacheWriterManager writerManager) throws CacheException
removeWithWriter in interface StoreremoveWithWriter in class ExecutorServiceStoreCacheExceptionpublic void removeAll()
throws CacheException
CacheEventListeners they are notified of the expiry or removal
of the Element as each is removed..
The timeout used by this method is NonstopConfiguration.getBulkOpsTimeoutMultiplyFactor() times the timeout value in the
config..
The timeout used by this method is NonstopConfiguration.getBulkOpsTimeoutMultiplyFactor() times the timeout value in the
config.removeAll in interface StoreremoveAll in class ExecutorServiceStoreCacheExceptionpublic Element putIfAbsent(Element element) throws NullPointerException
putIfAbsent in interface StoreputIfAbsent in class ExecutorServiceStoreelement - element to be addedNullPointerException - if the element is null, or has a null keypublic Element removeElement(Element element, ElementValueComparator comparator) throws NullPointerException
removeElement in interface StoreremoveElement in class ExecutorServiceStoreelement - Element to be removedcomparator - ElementValueComparator to use to compare elementsNullPointerException - if the element is null, or has a null keypublic boolean replace(Element old, Element element, ElementValueComparator comparator) throws NullPointerException, IllegalArgumentException
replace in interface Storereplace in class ExecutorServiceStoreold - Element to be test againstelement - Element to be cachedcomparator - ElementValueComparator to use to compare elementsNullPointerException - if the either Element is null or has a null keyIllegalArgumentException - if the two Element keys are non-null but not equalpublic Element replace(Element element) throws NullPointerException
replace in interface Storereplace in class ExecutorServiceStoreelement - Element to be cachedNullPointerException - if the Element is null or has a null keypublic int getSize()
getSize in interface StoregetSize in class ExecutorServiceStorepublic int getTerracottaClusteredSize()
getTerracottaClusteredSize in interface StoregetTerracottaClusteredSize in class ExecutorServiceStorepublic boolean containsKey(Object key)
containsKey in interface StorecontainsKey in class ExecutorServiceStorekey - The Element keyCopyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.