public interface IAerospikeReactorClient extends Closeable
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
add(com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
Reactively add integer bin values to existing record bin values.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
add(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
Reactively add integer bin values to existing record bin values.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
append(com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
Reactively append bin string values to existing record bin values.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
append(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
Reactively append bin string values to existing record bin values.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
delete(com.aerospike.client.Key key)
Reactively delete record for specified key.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
delete(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key)
Reactively delete record for specified key.
|
reactor.core.publisher.Mono<KeyObject> |
execute(com.aerospike.client.Key key,
String packageName,
String functionName,
com.aerospike.client.Value... functionArgs)
Reactively execute user defined function on server.
|
reactor.core.publisher.Mono<KeyObject> |
execute(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key,
String packageName,
String functionName,
com.aerospike.client.Value... functionArgs)
Reactively execute user defined function on server.
|
reactor.core.publisher.Mono<KeysExists> |
exists(com.aerospike.client.policy.BatchPolicy policy,
com.aerospike.client.Key[] keys)
Reactively check if multiple record keys exist in one batch call.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
exists(com.aerospike.client.Key key)
Reactively determine if a record key exists.
|
reactor.core.publisher.Mono<KeysExists> |
exists(com.aerospike.client.Key[] keys)
Reactively check if multiple record keys exist in one batch call.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
exists(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
Reactively determine if a record key exists.
|
reactor.core.publisher.Flux<KeyExists> |
existsFlux(com.aerospike.client.policy.BatchPolicy policy,
com.aerospike.client.Key[] keys)
Reactively check if multiple record keys exist in one batch call.
|
reactor.core.publisher.Flux<KeyExists> |
existsFlux(com.aerospike.client.Key[] keys)
Reactively check if multiple record keys exist in one batch call.
|
reactor.core.publisher.Mono<KeysRecords> |
get(com.aerospike.client.policy.BatchPolicy policy,
com.aerospike.client.Key[] keys)
Reactively read multiple records for specified keys in one batch call.
|
reactor.core.publisher.Mono<List<com.aerospike.client.BatchRead>> |
get(com.aerospike.client.policy.BatchPolicy policy,
List<com.aerospike.client.BatchRead> records)
Reactively read multiple records for specified batch keys in one batch call.
|
reactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> |
get(com.aerospike.client.Key key)
Reactively read entire record for specified key.
|
reactor.core.publisher.Mono<KeysRecords> |
get(com.aerospike.client.Key[] keys)
Reactively read multiple records for specified keys in one batch call.
|
reactor.core.publisher.Mono<List<com.aerospike.client.BatchRead>> |
get(List<com.aerospike.client.BatchRead> records)
Asynchronously read multiple records for specified batch keys in one batch call.
|
reactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> |
get(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
Reactively read entire record for specified key.
|
reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> |
getFlux(com.aerospike.client.policy.BatchPolicy policy,
com.aerospike.client.Key[] keys)
Reactively read multiple records for specified keys in one batch call.
|
reactor.core.publisher.Flux<com.aerospike.client.BatchRead> |
getFlux(com.aerospike.client.policy.BatchPolicy policy,
List<com.aerospike.client.BatchRead> records)
Reactively read multiple records for specified batch keys in one batch call.
|
reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> |
getFlux(com.aerospike.client.Key[] keys)
Reactively read multiple records for specified keys in one batch call.
|
reactor.core.publisher.Flux<com.aerospike.client.BatchRead> |
getFlux(List<com.aerospike.client.BatchRead> records)
Reactively read multiple records for specified batch keys in one batch call.
|
reactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> |
getHeader(com.aerospike.client.Key key)
Reactively read record generation and expiration only for specified key.
|
reactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> |
getHeader(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
Reactively read record generation and expiration only for specified key.
|
reactor.core.publisher.Mono<KeysRecords> |
getHeaders(com.aerospike.client.policy.BatchPolicy policy,
com.aerospike.client.Key[] keys)
Reactively read multiple record header data for specified keys in one batch call.
|
reactor.core.publisher.Mono<KeysRecords> |
getHeaders(com.aerospike.client.Key[] keys)
Reactively read multiple record header data for specified keys in one batch call.
|
reactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> |
operate(com.aerospike.client.Key key,
com.aerospike.client.Operation... operations)
Reactively perform multiple read/write operations on a single key in one batch call.
|
reactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> |
operate(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key,
com.aerospike.client.Operation... operations)
Reactively perform multiple read/write operations on a single key in one batch call.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
prepend(com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
Reactively prepend bin string values to existing record bin values.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
prepend(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
Reactively prepend bin string values to existing record bin values.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
put(com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
Reactively write record bin(s).
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
put(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
Reactively write record bin(s).
|
reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> |
query(com.aerospike.client.policy.QueryPolicy policy,
com.aerospike.client.query.Statement statement)
Reactively execute query on all server nodes.
|
reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> |
query(com.aerospike.client.query.Statement statement)
Reactively execute query on all server nodes.
|
reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> |
scanAll(com.aerospike.client.policy.ScanPolicy policy,
String namespace,
String setName,
String... binNames)
Reactively read all records in specified namespace and set.
|
reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> |
scanAll(String namespace,
String setName,
String... binNames)
Reactively read all records in specified namespace and set.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
touch(com.aerospike.client.Key key)
Reactively reset record's time to expiration using the policy's expiration.
|
reactor.core.publisher.Mono<com.aerospike.client.Key> |
touch(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key)
Reactively reset record's time to expiration using the policy's expiration.
|
reactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> get(com.aerospike.client.Key key)
throws com.aerospike.client.AerospikeException
key - unique record identifiercom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<KeysRecords> get(com.aerospike.client.Key[] keys) throws com.aerospike.client.AerospikeException
The returned records are in positional order with the original key array order. If a key is not found, the positional record will be null. The policy can be used to specify timeouts.
keys - array of unique record identifierscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<KeysRecords> get(com.aerospike.client.policy.BatchPolicy policy, com.aerospike.client.Key[] keys) throws com.aerospike.client.AerospikeException
The returned records are in positional order with the original key array order. If a key is not found, the positional record will be null. The policy can be used to specify timeouts.
policy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifierscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> get(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
throws com.aerospike.client.AerospikeException
The policy can be used to specify timeouts.
policy - generic configuration parameters, pass in null for defaultskey - unique record identifiercom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<List<com.aerospike.client.BatchRead>> get(List<com.aerospike.client.BatchRead> records) throws com.aerospike.client.AerospikeException
This method allows different namespaces/bins to be requested for each key in the batch. The returned records are located in the same list. If the BatchRead key field is not found, the corresponding record field will be null.
records - list of unique record identifiers and the bins to retrieve.
The returned records are located in the same list.com.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<List<com.aerospike.client.BatchRead>> get(com.aerospike.client.policy.BatchPolicy policy, List<com.aerospike.client.BatchRead> records) throws com.aerospike.client.AerospikeException
This method allows different namespaces/bins to be requested for each key in the batch. The returned records are located in the same list. If the BatchRead key field is not found, the corresponding record field will be null.
The policy can be used to specify timeouts.
policy - batch configuration parameters, pass in null for defaultsrecords - list of unique record identifiers and the bins to retrieve.
The returned records are located in the same list.com.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Flux<com.aerospike.client.BatchRead> getFlux(List<com.aerospike.client.BatchRead> records) throws com.aerospike.client.AerospikeException
This method allows different namespaces/bins to be requested for each key in the batch. Each record result is returned in separate onRecord() calls. If the BatchRead key field is not found, the corresponding record field will be null.
records - list of unique record identifiers and the bins to retrieve.
The returned records are located in the same list.com.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Flux<com.aerospike.client.BatchRead> getFlux(com.aerospike.client.policy.BatchPolicy policy,
List<com.aerospike.client.BatchRead> records)
throws com.aerospike.client.AerospikeException
This method allows different namespaces/bins to be requested for each key in the batch. Each record result is returned in separate onRecord() calls. If the BatchRead key field is not found, the corresponding record field will be null. The policy can be used to specify timeouts.
policy - batch configuration parameters, pass in null for defaultsrecords - list of unique record identifiers and the bins to retrieve.
The returned records are located in the same list.com.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> getFlux(com.aerospike.client.Key[] keys)
throws com.aerospike.client.AerospikeException
Each record result is returned in separate onRecord() calls. If a key is not found, the record will be null. The policy can be used to specify timeouts.
keys - array of unique record identifierscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> getFlux(com.aerospike.client.policy.BatchPolicy policy,
com.aerospike.client.Key[] keys)
throws com.aerospike.client.AerospikeException
Each record result is returned in separate onRecord() calls. If a key is not found, the record will be null. The policy can be used to specify timeouts.
policy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifierscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> getHeader(com.aerospike.client.Key key)
throws com.aerospike.client.AerospikeException
key - unique record identifiercom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> getHeader(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
throws com.aerospike.client.AerospikeException
The policy can be used to specify timeouts.
policy - generic configuration parameters, pass in null for defaultskey - unique record identifiercom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<KeysRecords> getHeaders(com.aerospike.client.Key[] keys) throws com.aerospike.client.AerospikeException
The returned records are in positional order with the original key array order. If a key is not found, the positional record will be null.
keys - array of unique record identifierscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<KeysRecords> getHeaders(com.aerospike.client.policy.BatchPolicy policy, com.aerospike.client.Key[] keys) throws com.aerospike.client.AerospikeException
The returned records are in positional order with the original key array order. If a key is not found, the positional record will be null. The policy can be used to specify timeouts.
policy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifierscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> touch(com.aerospike.client.Key key)
throws com.aerospike.client.AerospikeException
Fail if the record does not exist.
key - unique record identifiercom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> touch(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key)
throws com.aerospike.client.AerospikeException
Fail if the record does not exist.
policy - write configuration parameters, pass in null for defaultskey - unique record identifiercom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> exists(com.aerospike.client.Key key)
throws com.aerospike.client.AerospikeException
key - unique record identifiercom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> exists(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
throws com.aerospike.client.AerospikeException
The policy can be used to specify timeouts.
policy - generic configuration parameters, pass in null for defaultskey - unique record identifiercom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<KeysExists> exists(com.aerospike.client.Key[] keys) throws com.aerospike.client.AerospikeException
The returned boolean array is in positional order with the original key array order.
keys - unique record identifierscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<KeysExists> exists(com.aerospike.client.policy.BatchPolicy policy, com.aerospike.client.Key[] keys) throws com.aerospike.client.AerospikeException
The returned boolean array is in positional order with the original key array order.
policy - batch configuration parameters, pass in null for defaultskeys - unique record identifierscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Flux<KeyExists> existsFlux(com.aerospike.client.Key[] keys) throws com.aerospike.client.AerospikeException
Each key's result is returned in separate onExists() calls.
keys - unique record identifierscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Flux<KeyExists> existsFlux(com.aerospike.client.policy.BatchPolicy policy, com.aerospike.client.Key[] keys) throws com.aerospike.client.AerospikeException
Each key's result is returned in separate onExists() calls.
policy - batch configuration parameters, pass in null for defaultskeys - unique record identifierscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> put(com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
throws com.aerospike.client.AerospikeException
key - unique record identifierbins - array of bin name/value pairscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> put(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
throws com.aerospike.client.AerospikeException
The policy specifies the transaction timeout, record expiration and how the transaction is handled when the record already exists.
policy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> append(com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
throws com.aerospike.client.AerospikeException
key - unique record identifierbins - array of bin name/value pairscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> append(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
throws com.aerospike.client.AerospikeException
The policy specifies the transaction timeout, record expiration and how the transaction is handled when the record already exists. This call only works for string values.
policy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> prepend(com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
throws com.aerospike.client.AerospikeException
key - unique record identifierbins - array of bin name/value pairscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> prepend(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
throws com.aerospike.client.AerospikeException
The policy specifies the transaction timeout, record expiration and how the transaction is handled when the record already exists. This call only works for string values.
policy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> add(com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
throws com.aerospike.client.AerospikeException
key - unique record identifierbins - array of bin name/value pairscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> add(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
throws com.aerospike.client.AerospikeException
The policy specifies the transaction timeout, record expiration and how the transaction is handled when the record already exists. This call only works for integer values.
policy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairscom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> delete(com.aerospike.client.Key key)
throws com.aerospike.client.AerospikeException
key - unique record identifiercom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.Key> delete(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key)
throws com.aerospike.client.AerospikeException
The policy specifies the transaction timeout.
policy - write configuration parameters, pass in null for defaultskey - unique record identifiercom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> operate(com.aerospike.client.Key key,
com.aerospike.client.Operation... operations)
throws com.aerospike.client.AerospikeException
An example would be to add an integer value to an existing record and then read the result, all in one database call.
Write operations are always performed first, regardless of operation order relative to read operations.
Both scalar bin operations (Operation) and list bin operations (ListOperation) can be performed in same call.
key - unique record identifieroperations - database operations to performcom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> operate(com.aerospike.client.policy.WritePolicy policy,
com.aerospike.client.Key key,
com.aerospike.client.Operation... operations)
throws com.aerospike.client.AerospikeException
An example would be to add an integer value to an existing record and then read the result, all in one database call.
Write operations are always performed first, regardless of operation order relative to read operations.
Both scalar bin operations (Operation) and list bin operations (ListOperation) can be performed in same call.
policy - write configuration parameters, pass in null for defaultskey - unique record identifieroperations - database operations to performcom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> query(com.aerospike.client.query.Statement statement)
throws com.aerospike.client.AerospikeException
statement - database query commandcom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> query(com.aerospike.client.policy.QueryPolicy policy,
com.aerospike.client.query.Statement statement)
throws com.aerospike.client.AerospikeException
policy - query configuration parameters, pass in null for defaultsstatement - database query commandcom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> scanAll(String namespace, String setName, String... binNames) throws com.aerospike.client.AerospikeException
concurrentNodes is specified, each server node will be read in
parallel. Otherwise, server nodes are read in series.
This method registers the command with an event loop and returns. The event loop thread will process the command and send the results to the listener.
namespace - namespace - equivalent to database namesetName - optional set name - equivalent to database tablebinNames - optional bin to retrieve. All bins will be returned if not specified.
Aerospike 2 servers ignore this parameter.com.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> scanAll(com.aerospike.client.policy.ScanPolicy policy,
String namespace,
String setName,
String... binNames)
throws com.aerospike.client.AerospikeException
concurrentNodes is specified, each server node will be read in
parallel. Otherwise, server nodes are read in series.
This method registers the command with an event loop and returns. The event loop thread will process the command and send the results to the listener.
policy - scan configuration parameters, pass in null for defaultsnamespace - namespace - equivalent to database namesetName - optional set name - equivalent to database tablebinNames - optional bin to retrieve. All bins will be returned if not specified.
Aerospike 2 servers ignore this parameter.com.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<KeyObject> execute(com.aerospike.client.Key key, String packageName, String functionName, com.aerospike.client.Value... functionArgs) throws com.aerospike.client.AerospikeException
The function operates on a single record. The package name is used to locate the udf file location:
udf file =
key - unique record identifierpackageName - server package name where user defined function residesfunctionName - user defined functionfunctionArgs - arguments passed in to user defined functioncom.aerospike.client.AerospikeException - if event loop registration failsreactor.core.publisher.Mono<KeyObject> execute(com.aerospike.client.policy.WritePolicy policy, com.aerospike.client.Key key, String packageName, String functionName, com.aerospike.client.Value... functionArgs) throws com.aerospike.client.AerospikeException
The function operates on a single record. The package name is used to locate the udf file location:
udf file =
policy - write configuration parameters, pass in null for defaultskey - unique record identifierpackageName - server package name where user defined function residesfunctionName - user defined functionfunctionArgs - arguments passed in to user defined functioncom.aerospike.client.AerospikeException - if event loop registration failsCopyright © 2012–2019 Aerospike, Inc. All rights reserved.