|
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 net.sf.ehcache.transaction.TransactionIDFactoryImpl
public class TransactionIDFactoryImpl
A TransactionIDFactory implementation with uniqueness across a single JVM
Constructor Summary | |
---|---|
TransactionIDFactoryImpl()
|
Method Summary | |
---|---|
TransactionID |
createTransactionID()
Create a unique transaction ID |
XidTransactionID |
createXidTransactionID(Xid xid,
Ehcache cache)
Create a transaction ID based on a XID for uniqueness |
protected ConcurrentMap<TransactionID,Decision> |
getTransactionStates()
Return the map of transaction states. |
boolean |
isExpired(TransactionID transactionID)
Check if the transaction ID expired, ie: that the transaction died abnormally |
Boolean |
isPersistent()
Return true if the factory state is persistent (survives JVM restart). |
TransactionID |
restoreTransactionID(TransactionIDSerializedForm serializedForm)
Restore a transaction ID from its serialized form |
XidTransactionID |
restoreXidTransactionID(XidTransactionIDSerializedForm serializedForm)
Restore a XID transaction ID from its serialized form |
Methods inherited from class net.sf.ehcache.transaction.AbstractTransactionIDFactory |
---|
clear, getAllTransactionIDs, getAllXidTransactionIDsFor, isDecisionCommit, markForCommit, markForRollback |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionIDFactoryImpl()
Method Detail |
---|
public TransactionID createTransactionID()
public TransactionID restoreTransactionID(TransactionIDSerializedForm serializedForm)
serializedForm
- the TransactionID serialized form
public XidTransactionID createXidTransactionID(Xid xid, Ehcache cache)
xid
- the XID
public XidTransactionID restoreXidTransactionID(XidTransactionIDSerializedForm serializedForm)
serializedForm
- the XidTransactionID serialized form
protected ConcurrentMap<TransactionID,Decision> getTransactionStates()
AbstractTransactionIDFactory
getTransactionStates
in class AbstractTransactionIDFactory
public Boolean isPersistent()
TransactionIDFactory
true
if the factory state is persistent (survives JVM restart).
This is a tri-state return:
Boolean.TRUE
: persistentBoolean.FALSE
: not persistentnull
: not yet determined
true
is state is persistentpublic boolean isExpired(TransactionID transactionID)
TransactionIDFactory
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |