Package | Description |
---|---|
net.sf.ehcache |
This package contains the public API for using ehcache.
|
net.sf.ehcache.transaction |
This package contains classes for controlling cache operations for transactional use.
|
net.sf.ehcache.transaction.local |
This package contains the local transactions subsystem.
|
net.sf.ehcache.transaction.xa |
This package contains the functionality to provide XA support to a transactional Cache.
|
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<TransactionID,LocalTransactionContext> |
TransactionController.contextMap |
private VicariousThreadLocal<TransactionID> |
TransactionController.currentTransactionIdThreadLocal |
Modifier and Type | Class and Description |
---|---|
class |
ExpiredTransactionIDImpl |
class |
TransactionIDImpl
A transaction ID implementation with uniqueness across a single JVM
|
Modifier and Type | Field and Description |
---|---|
private TransactionID |
SoftLockID.transactionID |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<TransactionID,Decision> |
TransactionIDFactoryImpl.transactionStates |
Modifier and Type | Method and Description |
---|---|
TransactionID |
DelegatingTransactionIDFactory.createTransactionID()
Create a unique transaction ID
|
TransactionID |
TransactionIDFactory.createTransactionID()
Create a unique transaction ID
|
TransactionID |
TransactionIDFactoryImpl.createTransactionID()
Create a unique transaction ID
|
TransactionID |
SoftLockID.getTransactionID()
Get the ID of the transaction under which this soft lock is operating
|
TransactionID |
DelegatingTransactionIDFactory.restoreTransactionID(TransactionIDSerializedForm serializedForm)
Restore a transaction ID from its serialized form
|
TransactionID |
TransactionIDFactory.restoreTransactionID(TransactionIDSerializedForm serializedForm)
Restore a transaction ID from its serialized form
|
TransactionID |
TransactionIDFactoryImpl.restoreTransactionID(TransactionIDSerializedForm serializedForm)
Restore a transaction ID from its serialized form
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<TransactionID> |
AbstractTransactionIDFactory.getAllTransactionIDs()
Get the set of all known transactions.
|
java.util.Set<TransactionID> |
DelegatingTransactionIDFactory.getAllTransactionIDs() |
java.util.Set<TransactionID> |
TransactionIDFactory.getAllTransactionIDs()
Get the set of all known transactions.
|
protected abstract java.util.concurrent.ConcurrentMap<TransactionID,Decision> |
AbstractTransactionIDFactory.getTransactionStates()
Return the map of transaction states.
|
protected java.util.concurrent.ConcurrentMap<TransactionID,Decision> |
TransactionIDFactoryImpl.getTransactionStates() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractTransactionIDFactory.clear(TransactionID transactionID)
Clear this transaction's state representation.
|
void |
DelegatingTransactionIDFactory.clear(TransactionID transactionID) |
void |
TransactionIDFactory.clear(TransactionID transactionID)
Clear this transaction's state representation.
|
java.util.Set<SoftLock> |
SoftLockManager.collectAllSoftLocksForTransactionID(TransactionID transactionID)
Get a the soft locks of the specified transaction ID
|
java.util.Set<SoftLock> |
AbstractSoftLockManager.collectAllSoftLocksForTransactionID(TransactionID transactionID)
Get a the soft locks of the specified transaction ID
|
SoftLockID |
SoftLockManager.createSoftLockID(TransactionID transactionID,
java.lang.Object key,
Element newElement,
Element oldElement,
boolean pinned)
Create a new soft lock ID and associated soft lock if necessary.
|
SoftLockID |
AbstractSoftLockManager.createSoftLockID(TransactionID transactionID,
java.lang.Object key,
Element newElement,
Element oldElement,
boolean pinned)
Create a new soft lock ID and associated soft lock if necessary.
|
Element |
SoftLock.getElement(TransactionID currentTransactionId,
SoftLockID softLockId)
Get the element the current transaction is supposed to see.
|
Element |
ReadCommittedSoftLockImpl.getElement(TransactionID currentTransactionId,
SoftLockID softLockId)
Get the element the current transaction is supposed to see.
|
boolean |
AbstractTransactionIDFactory.isDecisionCommit(TransactionID transactionID)
Check if the given transaction should be committed or not
|
boolean |
DelegatingTransactionIDFactory.isDecisionCommit(TransactionID transactionID) |
boolean |
TransactionIDFactory.isDecisionCommit(TransactionID transactionID)
Check if the given transaction should be committed or not
|
boolean |
DelegatingTransactionIDFactory.isExpired(TransactionID transactionID) |
boolean |
TransactionIDFactory.isExpired(TransactionID transactionID)
Check if the transaction ID expired, ie: that the transaction died abnormally
|
boolean |
TransactionIDFactoryImpl.isExpired(TransactionID transactionID) |
void |
AbstractTransactionIDFactory.markForCommit(TransactionID transactionID)
Mark that this transaction's decision is commit
|
void |
DelegatingTransactionIDFactory.markForCommit(TransactionID transactionID) |
void |
TransactionIDFactory.markForCommit(TransactionID transactionID)
Mark that this transaction's decision is commit
|
Constructor and Description |
---|
SoftLockID(TransactionID transactionID,
java.lang.Object key,
Element newElement,
Element oldElement,
boolean wasPinned)
Create a new SoftLockID instance
|
Modifier and Type | Field and Description |
---|---|
private TransactionID |
JtaLocalTransactionStore.JtaLocalEhcacheSynchronization.transactionId |
private TransactionID |
JtaLocalTransactionStore.JtaLocalEhcacheXAResource.transactionId |
private TransactionID |
LocalTransactionContext.transactionId |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<TransactionID> |
LocalRecoveryManager.previouslyRecoveredTransactionIDs |
Modifier and Type | Method and Description |
---|---|
TransactionID |
LocalTransactionContext.getTransactionId()
Get the transaction ID of the context
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<TransactionID> |
LocalRecoveryManager.getPreviouslyRecoveredTransactionIDs()
Get the set of transaction IDs collected by the previous recover() call
|
java.util.Set<TransactionID> |
LocalRecoveryManager.recover()
Run recovery on all registered local transaction stores.
|
java.util.Set<TransactionID> |
LocalTransactionStore.recover()
Recover and resolve all known soft locks
|
Constructor and Description |
---|
JtaLocalEhcacheSynchronization(TransactionController transactionController,
TransactionID transactionId) |
JtaLocalEhcacheXAResource(TransactionController transactionController,
TransactionID transactionId,
TransactionManagerLookup transactionManagerLookup) |
Modifier and Type | Interface and Description |
---|---|
interface |
XidTransactionID
A special TransactionID using a XID internally
|
Modifier and Type | Class and Description |
---|---|
class |
ExpiredXidTransactionIDImpl |
class |
XidTransactionIDImpl |