Top Description Constructors Methods
net.sf.ehcache.transaction

public abstract Class AbstractTransactionIDFactory

extends Object
implements TransactionIDFactory
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.transaction.TransactionIDFactory
Known Direct Subclasses
net.sf.ehcache.transaction.TransactionIDFactoryImpl
Imports
java.util.Collections, .HashSet, .Set, java.util.concurrent.ConcurrentMap, net.sf.ehcache.Ehcache, net.sf.ehcache.transaction.xa.XidTransactionID

An abstract map backed transaction id factory.
Author
Chris Dennis

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
clear(TransactionID
transaction to be cleared
transactionID
)

Implements net.sf.ehcache.transaction.TransactionIDFactory.clear.

Clear this transaction's state representation.
public Set<TransactionID>
public Set<XidTransactionID>
protected abstract ConcurrentMap<TransactionID, Decision>

Returns:

the map of transaction states
getTransactionStates
()

Return the map of transaction states.

public boolean
isDecisionCommit(TransactionID
transaction to be queried
transactionID
)

Implements net.sf.ehcache.transaction.TransactionIDFactory.isDecisionCommit.

Check if the given transaction should be committed or not
public void
markForCommit(TransactionID
transaction to be marked
transactionID
)

Implements net.sf.ehcache.transaction.TransactionIDFactory.markForCommit.

Mark that this transaction's decision is commit
public void
markForRollback(XidTransactionID transactionID)

Implements net.sf.ehcache.transaction.TransactionIDFactory.markForRollback.

Mark this transaction ID for rollback
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractTransactionIDFactoryback to summary
public AbstractTransactionIDFactory()

Method Detail

clearback to summary
public void clear(TransactionID transactionID)

Implements net.sf.ehcache.transaction.TransactionIDFactory.clear.

Doc from net.sf.ehcache.transaction.TransactionIDFactory.clear.

Clear this transaction's state representation.

Parameters
transactionID:TransactionID

transaction to be cleared

Annotations
@Override
getAllTransactionIDsback to summary
public Set<TransactionID> getAllTransactionIDs()

Implements net.sf.ehcache.transaction.TransactionIDFactory.getAllTransactionIDs.

Doc from net.sf.ehcache.transaction.TransactionIDFactory.getAllTransactionIDs.

Get the set of all known transactions.

Returns:Set<TransactionID>

the set of transactions

Annotations
@Override
getAllXidTransactionIDsForback to summary
public Set<XidTransactionID> getAllXidTransactionIDsFor(Ehcache cache)

Implements net.sf.ehcache.transaction.TransactionIDFactory.getAllXidTransactionIDsFor.

Doc from net.sf.ehcache.transaction.TransactionIDFactory.getAllXidTransactionIDsFor.

Get the set of all XID transactions of a cache.

Returns:Set<XidTransactionID>

the set of transactions

Annotations
@Override
getTransactionStatesback to summary
protected abstract ConcurrentMap<TransactionID, Decision> getTransactionStates()

Return the map of transaction states.

Returns:ConcurrentMap<TransactionID, Decision>

the map of transaction states

isDecisionCommitback to summary
public boolean isDecisionCommit(TransactionID transactionID)

Implements net.sf.ehcache.transaction.TransactionIDFactory.isDecisionCommit.

Doc from net.sf.ehcache.transaction.TransactionIDFactory.isDecisionCommit.

Check if the given transaction should be committed or not

Parameters
transactionID:TransactionID

transaction to be queried

Returns:boolean

true if the transaction should be committed

Annotations
@Override
markForCommitback to summary
public void markForCommit(TransactionID transactionID)

Implements net.sf.ehcache.transaction.TransactionIDFactory.markForCommit.

Doc from net.sf.ehcache.transaction.TransactionIDFactory.markForCommit.

Mark that this transaction's decision is commit

Parameters
transactionID:TransactionID

transaction to be marked

Annotations
@Override
markForRollbackback to summary
public void markForRollback(XidTransactionID transactionID)

Implements net.sf.ehcache.transaction.TransactionIDFactory.markForRollback.

Doc from net.sf.ehcache.transaction.TransactionIDFactory.markForRollback.

Mark this transaction ID for rollback

Annotations
@Override