|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.transaction.AbstractTransactionIDFactory
public abstract class AbstractTransactionIDFactory
An abstract map backed transaction id factory.
Constructor Summary | |
---|---|
AbstractTransactionIDFactory()
|
Method Summary | |
---|---|
void |
clear(TransactionID transactionID)
Clear this transaction's state representation. |
Set<TransactionID> |
getAllTransactionIDs()
Get the set of all known transactions. |
Set<XidTransactionID> |
getAllXidTransactionIDsFor(Ehcache cache)
Get the set of all XID transactions of a cache. |
protected abstract ConcurrentMap<TransactionID,Decision> |
getTransactionStates()
Return the map of transaction states. |
boolean |
isDecisionCommit(TransactionID transactionID)
Check if the given transaction should be committed or not |
void |
markForCommit(TransactionID transactionID)
Mark that this transaction's decision is commit |
void |
markForRollback(XidTransactionID transactionID)
Mark this transaction ID for rollback |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.ehcache.transaction.TransactionIDFactory |
---|
createTransactionID, createXidTransactionID, isExpired, isPersistent, restoreTransactionID, restoreXidTransactionID |
Constructor Detail |
---|
public AbstractTransactionIDFactory()
Method Detail |
---|
protected abstract ConcurrentMap<TransactionID,Decision> getTransactionStates()
public void markForCommit(TransactionID transactionID)
markForCommit
in interface TransactionIDFactory
transactionID
- transaction to be markedpublic void markForRollback(XidTransactionID transactionID)
markForRollback
in interface TransactionIDFactory
public boolean isDecisionCommit(TransactionID transactionID)
isDecisionCommit
in interface TransactionIDFactory
transactionID
- transaction to be queried
public void clear(TransactionID transactionID)
clear
in interface TransactionIDFactory
transactionID
- transaction to be clearedpublic Set<XidTransactionID> getAllXidTransactionIDsFor(Ehcache cache)
getAllXidTransactionIDsFor
in interface TransactionIDFactory
public Set<TransactionID> getAllTransactionIDs()
getAllTransactionIDs
in interface TransactionIDFactory
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |