Txn Class

Transaction. Each command in the transaction must use the same namespace.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
C#
public class Txn
Inheritance
Object    Txn

Constructors

Txn() Create transaction, assign random transaction id and initialize reads/writes hashmaps with default capacities.

The default client transaction timeout is zero. This means use the server configuration mrt-duration as the transaction timeout. The default mrt-duration is 10 seconds.

Txn(Int32, Int32) Create transaction, assign random transaction id and initialize reads/writes hashmaps with given capacities.

The default client transaction timeout is zero. This means use the server configuration mrt-duration as the transaction timeout. The default mrt-duration is 10 seconds.

Properties

Id 
InDoubt 
Ns Transaction namespace.
Reads 
State 
Timeout Transaction timeout in seconds. The timer starts when the transaction monitor record is created. This occurs when the first command in the transaction is executed. If the timeout is reached before a commit or abort is called, the server will expire and rollback the transaction.

If the transaction timeout is zero, the server configuration mrt-duration is used. The default mrt-duration is 10 seconds.

Writes 

Methods

Clear 
GetReadVersion Get record version for a given key.
MonitorExists Does transaction monitor record exist.
VerifyCommand Verify that the transaction state allows future commands.

See Also