public final class AsyncNode extends Node
HAS_BATCH_INDEX, HAS_DOUBLE, HAS_GEO, HAS_PEERS, HAS_REPLICAS_ALL, PARTITIONS
Constructor and Description |
---|
AsyncNode(com.aerospike.client.async.AsyncCluster cluster,
com.aerospike.client.cluster.NodeValidator nv)
Initialize server node with connection parameters.
|
Modifier and Type | Method and Description |
---|---|
com.aerospike.client.async.AsyncConnection |
getAsyncConnection(ByteBuffer byteBuffer)
Get asynchronous socket connection from connection pool for the server node.
|
void |
putAsyncConnection(com.aerospike.client.async.AsyncConnection conn)
Put asynchronous connection back into connection pool.
|
close, closeConnection, equals, getAddress, getConnection, getHost, getName, hasBatchIndex, hasDouble, hashCode, hasPeers, hasReplicasAll, isActive, putConnection, refresh, toString, useNewBatch
public AsyncNode(com.aerospike.client.async.AsyncCluster cluster, com.aerospike.client.cluster.NodeValidator nv)
cluster
- collection of active server nodesnv
- connection parameterspublic com.aerospike.client.async.AsyncConnection getAsyncConnection(ByteBuffer byteBuffer)
public void putAsyncConnection(com.aerospike.client.async.AsyncConnection conn)
conn
- socket connectionCopyright © 2012–2017 Aerospike, Inc. All rights reserved.