AsyncClient Constructor (AsyncClientPolicy, String, Int32)

Aerospike
Initialize asynchronous client. The client policy is used to set defaults and size internal data structures. If the host connection succeeds, the client will:
  • Add host to the cluster map
  • Request host's list of other nodes in cluster
  • Add these nodes to cluster map

If the connection succeeds, the client is ready to process database requests. If the connection fails and the policy's failOnInvalidHosts is true, a connection exception will be thrown. Otherwise, the cluster will remain in a disconnected state until the server is activated.

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public AsyncClient(
	AsyncClientPolicy policy,
	string hostname,
	int port
)

Parameters

policy
Type: Aerospike.ClientAsyncClientPolicy
client configuration parameters, pass in null for defaults
hostname
Type: SystemString
host name
port
Type: SystemInt32
host port
Exceptions

ExceptionCondition
AerospikeExceptionif host connection fails
See Also

Reference