|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Journal<K>
XA transactions journal used to record the state of in-flight transactions.
| Method Summary | |
|---|---|
void |
close()
Close the journal. |
void |
forget(TransactionId transactionId)
Forget a transaction that was terminated upon a heuristic decision. |
java.util.Collection<K> |
getInDoubtKeys(TransactionId transactionId)
Get a Collection of keys modified by a transaction still in-doubt. |
java.util.Map<TransactionId,java.lang.Boolean> |
heuristicDecisions()
Recover the state of all transactions that were terminated upon a heuristic decision. |
boolean |
isHeuristicallyTerminated(TransactionId transactionId)
Check if a transaction has been terminated by a heuristic decision. |
boolean |
isInDoubt(TransactionId transactionId)
Check if a transaction has been saved as in-doubt. |
void |
open()
Open the journal. |
java.util.Map<TransactionId,java.util.Collection<K>> |
recover()
Recover the state of all in-doubt transactions. |
void |
saveCommitted(TransactionId transactionId,
boolean heuristicDecision)
Save that a transaction has committed. |
void |
saveInDoubt(TransactionId transactionId,
java.util.Collection<K> inDoubtKeys)
Save that a transaction is in-doubt. |
void |
saveRolledBack(TransactionId transactionId,
boolean heuristicDecision)
Save that a transaction has rolled back. |
| Method Detail |
|---|
void saveCommitted(TransactionId transactionId,
boolean heuristicDecision)
transactionId - the ID of the transaction.heuristicDecision - true if the state change is being done upon a heuristic decision.
void saveRolledBack(TransactionId transactionId,
boolean heuristicDecision)
transactionId - the ID of the transaction.heuristicDecision - true if the state change is being done upon a heuristic decision.
void saveInDoubt(TransactionId transactionId,
java.util.Collection<K> inDoubtKeys)
transactionId - the ID of the transaction.inDoubtKeys - a Collection of keys modified by the transaction.boolean isInDoubt(TransactionId transactionId)
transactionId - the ID of the transaction.
java.util.Collection<K> getInDoubtKeys(TransactionId transactionId)
Collection of keys modified by a transaction still in-doubt.
transactionId - the ID of the transaction.
Collection of keys modified by the transaction.java.util.Map<TransactionId,java.util.Collection<K>> recover()
boolean isHeuristicallyTerminated(TransactionId transactionId)
transactionId - the ID of the transaction.
java.util.Map<TransactionId,java.lang.Boolean> heuristicDecisions()
void forget(TransactionId transactionId)
transactionId - the Id of the transaction.
void open()
throws java.io.IOException
java.io.IOException - if there was an error opening the journal.
void close()
throws java.io.IOException
java.io.IOException - if there was an error closing the journal.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||