public static interface ObjectGridEventGroup.TransactionEvents
| Modifier and Type | Method and Description |
|---|---|
void |
transactionBegin(String txid,
boolean isWriteThroughEnabled)
Signals the beginning of a
Session transaction. |
void |
transactionEnd(String txid,
boolean isWriteThroughEnabled,
boolean committed,
Collection changes)
Signals the ending of a
Session transaction. |
void transactionBegin(String txid, boolean isWriteThroughEnabled)
Session transaction.
A stringified version of the TxID is provided for correlating with the end of the transaction, if so desired. The type of transaction is also provided by the isWriteThroughEnabled boolean parameter.
txid - Stringified version of the TxIDisWriteThroughEnabled - boolean flag indicating whether the Session
transaction was started using the
Session.beginNoWriteThrough().
method. false is passed if
beginNoWriteThrough() was used.Session.begin(),
Session.beginNoWriteThrough()void transactionEnd(String txid, boolean isWriteThroughEnabled, boolean committed, Collection changes)
Signals the ending of a Session transaction.
A string version of the TxID is provided for correlating with the
begin of the transaction, if so desired. Map changes are also reported
with the collection of LogSequences passed to this method.
Typical uses of this event are for customers doing custom peer
invalidation or peer commit push. This event listener gives them the
changes. Calls to this method are made after commit and are sequenced so
that they are delivered one by one, not in parallel. The event order is
the commit and rollback order.
txid - string version of the TxIDisWriteThroughEnabled - boolean flag indicating whether the Session
transaction was started using the
Session.beginNoWriteThrough().
method. false is passed if
beginNoWriteThrough() was used.committed - a boolean flag indicating whether the transaction was
committed (true) or rolled back
(false)changes - a Collection of LogSequences representing the changes
that were committed or rolled back.LogSequence.isRollback(),
Session.begin(),
Session.beginNoWriteThrough(),
Session.commit(),
Session.rollback()