C# Class Hazelcast.Client.Connection.ClientConnectionManager

Exibir arquivo Open project: hazelcast/hazelcast-csharp-client Class Usage Examples

Public Methods

Method Description
AddConnectionHeartBeatListener ( IConnectionHeartbeatListener connectonHeartbeatListener ) : void
AddConnectionListener ( IConnectionListener connectionListener ) : void
ClientConnectionManager ( HazelcastClient client ) : System
DestroyConnection ( ClientConnection connection, Exception cause ) : void
GetConnection ( Address address ) : ClientConnection

Gets an existing connection for the given address

GetOrConnect ( Address target ) : ClientConnection

Gets the connection for the address. If there is no connection, a new one will be created

GetOrConnect ( Address address, Authenticator authenticator ) : ClientConnection
GetOrConnectAsync ( Address address ) : Task
Shutdown ( ) : void
Start ( ) : void

Private Methods

Method Description
CheckLive ( ) : void
ClusterAuthenticator ( ClientConnection connection ) : void
FireConnectionListenerEvent ( Action listenerAction ) : void
FireHeartBeatEvent ( Action listenerAction ) : void
Heartbeat ( ) : void
InitializeConnection ( Address address, Authenticator authenticator ) : ClientConnection

Method Details

AddConnectionHeartBeatListener() public method

public AddConnectionHeartBeatListener ( IConnectionHeartbeatListener connectonHeartbeatListener ) : void
connectonHeartbeatListener IConnectionHeartbeatListener
return void

AddConnectionListener() public method

public AddConnectionListener ( IConnectionListener connectionListener ) : void
connectionListener IConnectionListener
return void

ClientConnectionManager() public method

public ClientConnectionManager ( HazelcastClient client ) : System
client HazelcastClient
return System

DestroyConnection() public method

public DestroyConnection ( ClientConnection connection, Exception cause ) : void
connection ClientConnection
cause System.Exception
return void

GetConnection() public method

Gets an existing connection for the given address
public GetConnection ( Address address ) : ClientConnection
address Hazelcast.IO.Address
return ClientConnection

GetOrConnect() public method

Gets the connection for the address. If there is no connection, a new one will be created
public GetOrConnect ( Address target ) : ClientConnection
target Hazelcast.IO.Address
return ClientConnection

GetOrConnect() public method

public GetOrConnect ( Address address, Authenticator authenticator ) : ClientConnection
address Hazelcast.IO.Address
authenticator Authenticator
return ClientConnection

GetOrConnectAsync() public method

public GetOrConnectAsync ( Address address ) : Task
address Hazelcast.IO.Address
return Task

Shutdown() public method

public Shutdown ( ) : void
return void

Start() public method

public Start ( ) : void
return void