public final class AsyncNode extends Node
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()
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.
|
addAlias, close, equals, getAddress, getAliases, getConnection, getHost, getName, hashCode, isActive, putConnection, refresh, toString
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()
public void putAsyncConnection(com.aerospike.client.async.AsyncConnection conn)
conn
- socket connectionCopyright © 2012–2015 Aerospike, Inc. All rights reserved.