Asynchronously read record generation and expiration only for specified key. Bins are not read.
Create listener, call asynchronous get header and return task monitor.
The policy can be used to specify timeouts.
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.9.16.1 (3.9.16.1)
Syntax
C#
Task<Record> GetHeader( Policy policy, CancellationToken token, Key key )
Parameters
- policy
- Type: Aerospike.ClientPolicy
generic configuration parameters, pass in null for defaults - token
- Type: System.ThreadingCancellationToken
cancellation token - key
- Type: Aerospike.ClientKey
unique record identifier
Return Value
Type: TaskRecordExceptions
Exception | Condition |
---|---|
AerospikeException | if queue is full |
See Also