WritePolicy MembersAerospike

The WritePolicy type exposes the following members.
Constructors

  NameDescription
Public methodWritePolicy
Initializes a new instance of the WritePolicy class
Back to Top
Fields

  NameDescription
Public fieldexpiration
Record expiration. Seconds record will live before being removed by the server.
Public fieldgeneration
Expected generation. Generation is the number of times a record has been modified (including creation) on the server. If a write operation is creating a record, the expected generation would be 0.
Public fieldmaxRetries
Maximum number of retries before aborting the current transaction. A retry is attempted when there is a network error other than timeout. If maxRetries is exceeded, the abort will occur even if the timeout has not yet been exceeded.
(Inherited from Policy.)
Public fieldpriority
Priority of request relative to other transactions. Currently, only used for scans.
(Inherited from Policy.)
Public fieldrecordExistsAction
Qualify how to handle writes where the record already exists.
Public fieldsleepBetweenRetries
Milliseconds to sleep between retries if a transaction fails and the timeout was not exceeded.
(Inherited from Policy.)
Public fieldtimeout
Transaction timeout in milliseconds. This timeout is used to set the socket timeout and is also sent to the server along with the transaction in the wire protocol. Default to no timeout (0).
(Inherited from Policy.)
Back to Top
See Also