| Modifier and Type | Class and Description |
|---|---|
| private class | XATransactionStore.CleanupTimeout
This class is used to clean up the transactionToTimeoutMap after a transaction committed or rolled back. |
| private class | XATransactionStore.CleanupXAResource
This class is used to clean up the transactionToXAResourceMap after a transaction committed or rolled back. |
| private class | XATransactionStore.UnregisterXAResource
This class is used to unregister the XAResource after a transaction committed or rolled back. |
| Modifier and Type | Field and Description |
|---|---|
| private final Ehcache | |
| private final OperationObserver | |
| private final ElementValueComparator | |
| private static final Logger | |
| private final OperationObserver | |
| private final EhcacheXAResourceImpl | |
| private final OperationObserver | |
| private final SoftLockManager | |
| private final TransactionIDFactory | |
| private final TransactionManagerLookup | |
| private final ConcurrentHashMap | |
| private final ConcurrentHashMap |
| Access | Constructor and Description |
|---|---|
| public | XATransactionStore(TransactionManagerLookup
the transaction manager lookup implementation transactionManagerLookup, SoftLockManager the soft lock manager softLockManager, TransactionIDFactory the transaction ID factory transactionIdFactory, Ehcache the cache cache, Store the underlying store store, ElementValueComparator comparator)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| private long | |
| public boolean | containsKey(Object
The Element key key)Implements net. |
| public void | dispose()
Overrides net. Implements net. |
| public Element | |
| private Element | |
| private Transaction | |
| private Element | |
| public List | getKeys()
Implements net. |
| private XATransactionContext | |
| public EhcacheXAResourceImpl | Returns: the EhcacheXAResource of this storeGet or create the XAResource of this XA store |
| public Element | getQuiet(Object key)
Implements net. Element from the Store, without updating statistics
|
| private Element | |
| public int | |
| public int | getTerracottaClusteredSize()
Implements net. |
| private XATransactionContext | |
| private boolean | |
| public boolean | |
| public Element | putIfAbsent(Element
element to be added element)Implements net. |
| public boolean | putWithWriter(Element element, CacheWriterManager writerManager)
Implements net. |
| public Element | |
| public void | removeAll()
Implements net. |
| public Element | removeElement(Element
Element to be removed element, ElementValueComparator ElementValueComparator to use to compare elements comparator)Implements net. |
| private Element | |
| public Element | removeWithWriter(Object key, CacheWriterManager writerManager)
Implements net. |
| public boolean | replace(Element
Element to be test against old, Element Element to be cached element, ElementValueComparator ElementValueComparator to use to compare elements comparator)Implements net. |
| public Element | replace(Element
Element to be cached element)Implements net. |
| cache | back to summary |
|---|---|
| private final Ehcache cache | |
| commitObserver | back to summary |
|---|---|
| private final OperationObserver<XaCommitOutcome> commitObserver | |
| comparator | back to summary |
|---|---|
| private final ElementValueComparator comparator | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| recoveryObserver | back to summary |
|---|---|
| private final OperationObserver<XaRecoveryOutcome> recoveryObserver | |
| recoveryResource | back to summary |
|---|---|
| private final EhcacheXAResourceImpl recoveryResource | |
| rollbackObserver | back to summary |
|---|---|
| private final OperationObserver<XaRollbackOutcome> rollbackObserver | |
| softLockManager | back to summary |
|---|---|
| private final SoftLockManager softLockManager | |
| transactionIdFactory | back to summary |
|---|---|
| private final TransactionIDFactory transactionIdFactory | |
| transactionManagerLookup | back to summary |
|---|---|
| private final TransactionManagerLookup transactionManagerLookup | |
| transactionToTimeoutMap | back to summary |
|---|---|
| private final ConcurrentHashMap<Transaction, Long> transactionToTimeoutMap | |
| transactionToXAResourceMap | back to summary |
|---|---|
| private final ConcurrentHashMap<Transaction, EhcacheXAResource> transactionToXAResourceMap | |
| XATransactionStore | back to summary |
|---|---|
| public XATransactionStore(TransactionManagerLookup transactionManagerLookup, SoftLockManager softLockManager, TransactionIDFactory transactionIdFactory, Ehcache cache, Store store, ElementValueComparator comparator) Constructor
| |
| assertNotTimedOut | back to summary |
|---|---|
private long assertNotTimedOut()
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Implements net. Doc from net. A check to see if a key is in the Store.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides net. Implements net. Doc from net. Prepares for shutdown.
| |
| get | back to summary |
|---|---|
| public Element get(Object key) Implements net. Doc from net. Gets an item from the cache. | |
| getCurrentElement | back to summary |
|---|---|
| private Element getCurrentElement(final Object key, final XATransactionContext context) | |
| getCurrentTransaction | back to summary |
|---|---|
| private Transaction getCurrentTransaction() throws SystemException | |
| getFromUnderlyingStore | back to summary |
|---|---|
| private Element getFromUnderlyingStore(final Object key) | |
| getKeys | back to summary |
|---|---|
| public List Implements net. Doc from net. Gets an Array of the keys for all elements in the disk store.
| |
| getOrCreateTransactionContext | back to summary |
|---|---|
| private XATransactionContext getOrCreateTransactionContext() | |
| getOrCreateXAResource | back to summary |
|---|---|
| public EhcacheXAResourceImpl getOrCreateXAResource() throws SystemException Get or create the XAResource of this XA store
| |
| getQuiet | back to summary |
|---|---|
| public Element getQuiet(Object key) Implements net. Doc from net. Gets an
| |
| getQuietFromUnderlyingStore | back to summary |
|---|---|
| private Element getQuietFromUnderlyingStore(final Object key) | |
| getSize | back to summary |
|---|---|
| public int getSize() Implements net. Doc from net. Returns the current local store size
| |
| getTerracottaClusteredSize | back to summary |
|---|---|
| public int getTerracottaClusteredSize() Implements net. Doc from net. Returns the current Terracotta clustered store size
| |
| getTransactionContext | back to summary |
|---|---|
| private XATransactionContext getTransactionContext() | |
| internalPut | back to summary |
|---|---|
| private boolean internalPut(final StorePutCommand putCommand) | |
| put | back to summary |
|---|---|
| public boolean put(Element element) throws CacheException Implements net. Doc from net. Puts an item into the store.
| |
| putIfAbsent | back to summary |
|---|---|
| public Element putIfAbsent(Element element) throws NullPointerException Implements net. Doc from net. Put an element in the store if no element is currently mapped to the elements key.
| |
| putWithWriter | back to summary |
|---|---|
| public boolean putWithWriter(Element element, CacheWriterManager writerManager) throws CacheException Implements net. Doc from net. Puts an item into the store and the cache writer manager in an atomic operation
| |
| remove | back to summary |
|---|---|
| public Element remove(Object key) Implements net. Doc from net. Removes an item from the cache. | |
| removeAll | back to summary |
|---|---|
| public void removeAll() throws CacheException Implements net. Doc from net. Remove all of the elements from the store.
If there are registered | |
| removeElement | back to summary |
|---|---|
| public Element removeElement(Element element, ElementValueComparator comparator) throws NullPointerException Implements net. Doc from net. 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. This is a CAS operation. It is consistent even against a distributed cache that is not coherent. If the old value is stale when this operation is attempted the remove does not take place.
| |
| removeInternal | back to summary |
|---|---|
| private Element removeInternal(final StoreRemoveCommand command) | |
| removeWithWriter | back to summary |
|---|---|
| public Element removeWithWriter(Object key, CacheWriterManager writerManager) throws CacheException Implements net. Doc from net. Removes an item from the store and the cache writer manager in an atomic operation. | |
| replace | back to summary |
|---|---|
| public boolean replace(Element old, Element element, ElementValueComparator comparator) throws NullPointerException, IllegalArgumentException Implements net. Doc from net. Replace the cached element only if the value of the current Element is equal to the value of the supplied old Element.
| |
| replace | back to summary |
|---|---|
| public Element replace(Element element) throws NullPointerException Implements net. Doc from net. Replace the cached element only if an Element is currently cached for this key
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Transaction |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterCompletion(final int
The status of the transaction completion. status)Implements javax. |
| public void | beforeCompletion()
Implements javax. |
| transaction | back to summary |
|---|---|
| private final Transaction transaction | |
| CleanupTimeout | back to summary |
|---|---|
| private CleanupTimeout(final Transaction transaction) | |
| afterCompletion | back to summary |
|---|---|
| public void afterCompletion(final int status) Implements javax. Doc from javax. This method is called by the transaction manager after the transaction is committed or rolled back.
| |
| beforeCompletion | back to summary |
|---|---|
| public void beforeCompletion() Implements javax. Doc from javax. The beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process. This call is executed with the transaction context of the transaction that is being committed. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Transaction |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterCommitOrRollback(EhcacheXAResource
the XAResource which committed or rolled back xaResource)Implements net. |
| public void | beforePrepare(EhcacheXAResource
the XAResource about to prepare xaResource)Implements net. |
| transaction | back to summary |
|---|---|
| private final Transaction transaction | |
| CleanupXAResource | back to summary |
|---|---|
| private CleanupXAResource(Transaction transaction) | |
| afterCommitOrRollback | back to summary |
|---|---|
| public void afterCommitOrRollback(EhcacheXAResource xaResource) Implements net. Doc from net. Called when the resource committed or rolled back
| |
| beforePrepare | back to summary |
|---|---|
| public void beforePrepare(EhcacheXAResource xaResource) Implements net. Doc from net. Called when the resource is about to prepare
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterCommitOrRollback(EhcacheXAResource
the XAResource which committed or rolled back xaResource)Implements net. |
| public void | beforePrepare(EhcacheXAResource
the XAResource about to prepare xaResource)Implements net. |
| UnregisterXAResource | back to summary |
|---|---|
| private UnregisterXAResource() | |
| afterCommitOrRollback | back to summary |
|---|---|
| public void afterCommitOrRollback(EhcacheXAResource xaResource) Implements net. Doc from net. Called when the resource committed or rolled back
| |
| beforePrepare | back to summary |
|---|---|
| public void beforePrepare(EhcacheXAResource xaResource) Implements net. Doc from net. Called when the resource is about to prepare
| |