aerospike.Transaction
— Transaction Class
Methods
- class aerospike.Transaction
Initialize transaction, assign random transaction id and initialize reads/writes hashmaps with default capacities.
For both parameters, an unsigned 32-bit integer must be passed and the minimum value should be 16.
- Parameters:
- id
Get the random transaction id that was generated on class instance creation.
The value is an unsigned 64-bit integer.
This attribute is read-only.
- Type:
- state
One of the Transaction State constants.
This attribute is read-only.
- Type:
- 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
commit()
orabort()
is called, the server will expire and rollback the transaction.The default client transaction timeout is zero. This means use the server configuration
mrt-duration
as the transaction timeout. The defaultmrt-duration
is 10 seconds.This attribute can be read and written to.
- Type: