public final class CommitRollbackMessageTypeV1_1 extends CommitRollbackMessageType
Zone | Format | Length | Description |
---|---|---|---|
COMMIT | INTEGER | 1 | 1 if the transaction is to be committed, 0 if it is to be rolled back. |
TRANSACTIONID | INTEGER | 8 | The server-side ID of the (sub)transaction that must be either committed or rolled back. Negative values indicate "the most recently started transaction". |
MESSAGETYPEID
Modifier and Type | Method and Description |
---|---|
CommitRollbackMessage |
message(boolean commit,
long transactionID)
Gets a CommitRollbackMessage holding the request to either commit or roll back the transaction with the given ID
|
message
public CommitRollbackMessage message(boolean commit, long transactionID)
CommitRollbackMessageType
message
in class CommitRollbackMessageType
commit
- true if a commit is requested, false if a rollback is requestedtransactionID
- The server-side ID of the transaction that requests to be committed or rolled back. Negative values indicate "the current transaction".