public class AerospikeClientImpl extends java.lang.Object implements AerospikeClient
| Constructor and Description |
|---|
AerospikeClientImpl(io.vertx.core.Vertx vertx,
AerospikeConnectOptions connectOptions) |
| Modifier and Type | Method and Description |
|---|---|
AerospikeClient |
add(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
Asynchronously add integer/double bin values to existing record bin values.
|
AerospikeClient |
append(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
Asynchronously append bin string values to existing record bin values.
|
void |
close()
Close all client connections to database server nodes.
|
AerospikeClient |
delete(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler)
Asynchronously delete record for specified key.
|
AerospikeClient |
execute(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
java.lang.String packageName,
java.lang.String functionName,
com.aerospike.client.Value[] functionArgs,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> handler)
Asynchronously execute user defined function on server.
|
AerospikeClient |
exists(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.lang.Boolean>>> handler)
Asynchronously check if multiple record keys exist in one batch call.
|
AerospikeClient |
exists(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler)
Asynchronously determine if a record key exists.
|
AerospikeClient |
get(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler)
Asynchronously read multiple records for specified keys in one batch call.
|
AerospikeClient |
get(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys,
java.lang.String[] binNames,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler)
Asynchronously read multiple record headers and bins for specified keys in one batch call.
|
AerospikeClient |
get(com.aerospike.client.policy.BatchPolicy batchPolicy,
java.util.List<com.aerospike.client.BatchRead> records,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.BatchRead>>> handler)
Asynchronously read multiple records for specified batch keys in one batch call.
|
AerospikeClient |
get(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
Asynchronously read entire record for specified key.
|
AerospikeClient |
get(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key,
java.lang.String[] binNames,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
Asynchronously read record header and bins for specified key.
|
com.aerospike.client.AerospikeClient |
getAerospikeClient()
Get the underlying
AerospikeClient |
AerospikeClient |
getClusterStats(io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.cluster.ClusterStats>> handler)
Return operating cluster statistics.
|
AerospikeClient |
getHeader(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler)
Asynchronously read multiple record header data for specified keys in one batch call.
|
AerospikeClient |
getHeader(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
Asynchronously read record generation and expiration only for specified key.
|
AerospikeClient |
isConnected(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler)
Determine if we are ready to talk to the database server cluster.
|
AerospikeClient |
operate(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Operation[] operations,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
Asynchronously perform multiple read/write operations on a single key in one batch call.
|
AerospikeClient |
prepend(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
Asynchronously prepend bin string values to existing record bin values.
|
AerospikeClient |
put(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
Asynchronously write record bin(s).
|
AerospikeClient |
query(com.aerospike.client.policy.QueryPolicy queryPolicy,
com.aerospike.client.query.Statement statement,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler)
Asynchronously execute query on all server nodes.
|
AerospikeClient |
scanAll(com.aerospike.client.policy.ScanPolicy policy,
java.lang.String namespace,
java.lang.String setName,
java.lang.String[] binNames,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler)
Asynchronously read all records in specified namespace and set
|
AerospikeClient |
scanPartitions(com.aerospike.client.policy.ScanPolicy policy,
com.aerospike.client.query.PartitionFilter partitionFilter,
java.lang.String namespace,
java.lang.String setName,
java.lang.String[] binNames,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler)
Asynchronously read records in specified namespace, set and partition filter.
|
AerospikeClient |
touch(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
Asynchronously reset record's time to expiration using the policy's expiration.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, createNonShared, createNonSharedpublic AerospikeClientImpl(io.vertx.core.Vertx vertx,
AerospikeConnectOptions connectOptions)
public com.aerospike.client.AerospikeClient getAerospikeClient()
AerospikeClientAerospikeClientgetAerospikeClient in interface AerospikeClientcom.aerospike.client.AerospikeClient instance which is used internally.public AerospikeClient isConnected(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler)
AerospikeClientisConnected in interface AerospikeClienthandler - the handler that will handle responseAerospikeClient.isConnected()public AerospikeClient getClusterStats(io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.cluster.ClusterStats>> handler)
AerospikeClientgetClusterStats in interface AerospikeClienthandler - the handler that will handle the received cluster statisticsAerospikeClient.getClusterStats()public void close()
AerospikeClientclose in interface AerospikeClientclose in interface java.lang.AutoCloseableAerospikeClient.close()public AerospikeClient put(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, com.aerospike.client.Bin[] bins, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientput in interface AerospikeClientwritePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairshandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.put(EventLoop, WriteListener, WritePolicy, Key, Bin...)public AerospikeClient append(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, com.aerospike.client.Bin[] bins, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientappend in interface AerospikeClientwritePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairshandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.append(EventLoop, WriteListener, WritePolicy, Key, Bin...)public AerospikeClient prepend(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, com.aerospike.client.Bin[] bins, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientprepend in interface AerospikeClientwritePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairshandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.prepend(WritePolicy, Key, Bin...)public AerospikeClient add(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, com.aerospike.client.Bin[] bins, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientadd in interface AerospikeClientwritePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairshandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.add(EventLoop, WriteListener, WritePolicy, Key, Bin...)public AerospikeClient delete(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientdelete in interface AerospikeClientwritePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierhandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.delete(EventLoop, DeleteListener, WritePolicy, Key)public AerospikeClient touch(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler) throws com.aerospike.client.AerospikeException
AerospikeClienttouch in interface AerospikeClientwritePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierhandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.touch(EventLoop, WriteListener, WritePolicy, Key)public AerospikeClient exists(com.aerospike.client.policy.Policy policy, com.aerospike.client.Key key, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientexists in interface AerospikeClientpolicy - generic configuration parameters, pass in null for defaultskey - unique record identifierhandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.exists(EventLoop, ExistsListener, Policy, Key)public AerospikeClient exists(com.aerospike.client.policy.BatchPolicy batchPolicy, com.aerospike.client.Key[] keys, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.lang.Boolean>>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientexists in interface AerospikeClientbatchPolicy - batch configuration parameters, pass in null for defaultskeys - unique record identifiershandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.exists(EventLoop, ExistsArrayListener, BatchPolicy, Key[])public AerospikeClient get(com.aerospike.client.policy.Policy policy, com.aerospike.client.Key key, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientget in interface AerospikeClientpolicy - generic configuration parameters, pass in null for defaultskey - unique record identifierhandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.get(EventLoop, RecordListener, Policy, Key)public AerospikeClient get(com.aerospike.client.policy.Policy policy, com.aerospike.client.Key key, java.lang.String[] binNames, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientget in interface AerospikeClientpolicy - generic configuration parameters, pass in null for defaultskey - unique record identifierbinNames - bins to retrievehandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.get(EventLoop, RecordListener, Policy, Key, String...)public AerospikeClient getHeader(com.aerospike.client.policy.Policy policy, com.aerospike.client.Key key, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientgetHeader in interface AerospikeClientpolicy - generic configuration parameters, pass in null for defaultskey - unique record identifierhandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.getHeader(EventLoop, RecordListener, Policy, Key)public AerospikeClient get(com.aerospike.client.policy.BatchPolicy batchPolicy, java.util.List<com.aerospike.client.BatchRead> records, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.BatchRead>>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientget in interface AerospikeClientbatchPolicy - 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.handler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.get(EventLoop, BatchListListener, BatchPolicy, List)public AerospikeClient get(com.aerospike.client.policy.BatchPolicy batchPolicy, com.aerospike.client.Key[] keys, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientget in interface AerospikeClientbatchPolicy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifiershandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.get(EventLoop, RecordArrayListener, BatchPolicy, Key[])public AerospikeClient get(com.aerospike.client.policy.BatchPolicy batchPolicy, com.aerospike.client.Key[] keys, java.lang.String[] binNames, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientget in interface AerospikeClientbatchPolicy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifiersbinNames - array of bins to retrievehandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.get(EventLoop, RecordArrayListener, BatchPolicy, Key[], String...)public AerospikeClient getHeader(com.aerospike.client.policy.BatchPolicy batchPolicy, com.aerospike.client.Key[] keys, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientgetHeader in interface AerospikeClientbatchPolicy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifiershandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.getHeader(EventLoop, RecordArrayListener, BatchPolicy, Key[])public AerospikeClient operate(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, com.aerospike.client.Operation[] operations, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientoperate in interface AerospikeClientwritePolicy - write configuration parameters, pass in null for defaultskey - unique record identifieroperations - database operations to performhandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.operate(EventLoop, RecordListener, WritePolicy, Key, Operation...)public AerospikeClient scanAll(com.aerospike.client.policy.ScanPolicy policy, java.lang.String namespace, java.lang.String setName, java.lang.String[] binNames, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientscanAll in interface AerospikeClientpolicy - scan configuration parameters, pass in null for defaultsnamespace - namespace - equivalent to database namesetName - optional set name - equivalent to database tablebinNames - optional bins to retrieve. All bins will be returned if empty.handler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.scanAll(EventLoop, RecordSequenceListener, ScanPolicy, String, String, String...)public AerospikeClient scanPartitions(com.aerospike.client.policy.ScanPolicy policy, com.aerospike.client.query.PartitionFilter partitionFilter, java.lang.String namespace, java.lang.String setName, java.lang.String[] binNames, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientscanPartitions in interface AerospikeClientpolicy - scan configuration parameters, pass in null for defaultspartitionFilter - filter on a subset of data partitionsnamespace - namespace - equivalent to database namesetName - optional set name - equivalent to database tablebinNames - optional bins to retrieve. All bins will be returned if empty.handler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.scanPartitions(EventLoop, RecordSequenceListener, ScanPolicy, PartitionFilter, String, String, String...)public AerospikeClient execute(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, java.lang.String packageName, java.lang.String functionName, com.aerospike.client.Value[] functionArgs, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientexecute in interface AerospikeClientwritePolicy - 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 functionhandler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.execute(EventLoop, ExecuteListener, WritePolicy, Key, String, String, Value...)public AerospikeClient query(com.aerospike.client.policy.QueryPolicy queryPolicy, com.aerospike.client.query.Statement statement, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler) throws com.aerospike.client.AerospikeException
AerospikeClientquery in interface AerospikeClientqueryPolicy - query configuration parameters, pass in null for defaultsstatement - query filter. Statement instance is not suitable for reuse since it's modified in this method.handler - the handler that will handle the resultcom.aerospike.client.AerospikeException - if event loop registration failsAerospikeClient.query(EventLoop, RecordSequenceListener, QueryPolicy, Statement)Copyright © 2021. All rights reserved.