public interface TransactionParticipant extends TransactionConstants
Modifier and Type | Method and Description |
---|---|
default void |
abort(long id,
java.io.Serializable context)
Called by TransactionManager upon transaction commit.
|
default void |
commit(long id,
java.io.Serializable context)
Called by TransactionManager upon transaction commit.
|
int |
prepare(long id,
java.io.Serializable context)
Called by TransactionManager in preparation for a transaction
|
int prepare(long id, java.io.Serializable context)
id
- the Transaction identifiercontext
- transaction contextdefault void commit(long id, java.io.Serializable context)
id
- the Transaction identifiercontext
- transaction contextdefault void abort(long id, java.io.Serializable context)
id
- the Transaction identifiercontext
- transaction context