public final class EndTransactionMessageTypeV1_0 extends EndTransactionMessageType
This message has the following fields :
Zone | Format | Length | Description |
---|---|---|---|
COMMIT | INTEGER | 1 | 1 if the transaction is to be committed, 0 if it is to be rolled back. |
MESSAGETYPEID
Modifier and Type | Method and Description |
---|---|
EndTransactionMessage |
message(boolean commit,
long transactionID)
Creates an EndTransaction message corresponding to the version of this message type, holding the given commit flag and transaction ID.
|
message
public EndTransactionMessage message(boolean commit, long transactionID)
EndTransactionMessageType
message
in class EndTransactionMessageType
commit
- true if the transaction to be ended must be committed, false if it is to be rolled back.transactionID
- The server-side ID of the transaction to be ended. Negative values indicate the "current" transaction, i.e. the lowest transaction in the current nested transaction structure.