C# Class Hazelcast.Client.Connection.ClientConnection

Holds the clientSocket to one of the members of Hazelcast ICluster.
Holds the clientSocket to one of the members of Hazelcast ICluster.
显示文件 Open project: hazelcast/hazelcast-csharp-client Class Usage Examples

Public Methods

Method Description
ClientConnection ( ClientConnectionManager clientConnectionManager, ClientInvocationService invocationService, int id, Address address, ClientNetworkConfig clientNetworkConfig ) : System
Close ( ) : void
GetAddress ( ) : Address
GetLocalSocketAddress ( ) : IPEndPoint
HeartbeatFailed ( ) : void
HeartbeatSucceeded ( ) : void
Init ( ISocketInterceptor socketInterceptor ) : void
IsOwner ( ) : bool
SetOwner ( ) : void
ToString ( ) : string
WriteAsync ( ISocketWritable packet ) : bool

Private Methods

Method Description
BeginRead ( ) : void
CheckLive ( ) : bool
EndReadCallback ( IAsyncResult asyncResult ) : void
GetSocket ( ) : Socket
HandleSocketException ( Exception e ) : void
RemoteCertificateValidationCallback ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors, ClientNetworkConfig clientNetworkConfig ) : bool
StartReadWriteLoop ( ) : void
WriteQueueLoop ( ) : void

Method Details

ClientConnection() public method

public ClientConnection ( ClientConnectionManager clientConnectionManager, ClientInvocationService invocationService, int id, Address address, ClientNetworkConfig clientNetworkConfig ) : System
clientConnectionManager ClientConnectionManager
invocationService Hazelcast.Client.Spi.ClientInvocationService
id int
address Hazelcast.IO.Address
clientNetworkConfig Hazelcast.Config.ClientNetworkConfig
return System

Close() public method

public Close ( ) : void
return void

GetAddress() public method

public GetAddress ( ) : Address
return Hazelcast.IO.Address

GetLocalSocketAddress() public method

public GetLocalSocketAddress ( ) : IPEndPoint
return System.Net.IPEndPoint

HeartbeatFailed() public method

public HeartbeatFailed ( ) : void
return void

HeartbeatSucceeded() public method

public HeartbeatSucceeded ( ) : void
return void

Init() public method

public Init ( ISocketInterceptor socketInterceptor ) : void
socketInterceptor ISocketInterceptor
return void

IsOwner() public method

public IsOwner ( ) : bool
return bool

SetOwner() public method

public SetOwner ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

WriteAsync() public method

public WriteAsync ( ISocketWritable packet ) : bool
packet ISocketWritable
return bool