Class Transaction

java.lang.Object
io.deephaven.kv.Transaction
All Implemented Interfaces:
Composable, Request<TransactionResponse>

public final class Transaction extends Object implements Request<TransactionResponse>
A transaction is an if/else construct. On execution, if the getCondition() evaluates to true, then the request(s) as described by getOnConditionTrueOperation() are executed; otherwise, the request(s) as described by getOnConditionFalseOperation() are executed.

Transactions enable application logic to dictate desired atomicity, through the use of compare-and-set like constructions.