C# Class Hazelcast.Client.Spi.ClientInvocationService

Inheritance: IClientInvocationService, IConnectionListener, IConnectionHeartbeatListener
ファイルを表示 Open project: hazelcast/hazelcast-csharp-client Class Usage Examples

Private Properties

Property Type Description
CleanupEventHandlers void
CleanupInvocations void
EnsureOwnerConnectionAvailable void
GetConnection Hazelcast.Client.Connection.ClientConnection
GetNewInvocationAddress Hazelcast.IO.Address
GetRandomAddress Hazelcast.IO.Address
GetRegistrationIdFromResponse string
HandleEventMessage void
HandleInvocationException void
HandleResponseMessage void
InvokeInternal void
NextCorrelationId long
ReregisterListener IFuture
ShouldRetryInvocation bool
TryRegisterInvocation bool
TrySend bool
UnregisterInvocation void
UpdateInvocation void
ValidateInvocation void

Public Methods

Method Description
CleanUpConnectionResources ( ClientConnection connection ) : void
ConnectionAdded ( ClientConnection connection ) : void
ConnectionRemoved ( ClientConnection connection ) : void
HandleClientMessage ( IClientMessage message ) : void
InvokeListenerOnConnection ( IClientMessage request, DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder, ClientConnection connection ) : IFuture
InvokeListenerOnKeyOwner ( IClientMessage request, object key, DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder ) : IFuture
InvokeListenerOnPartition ( IClientMessage request, int partitionId, DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder ) : IFuture
InvokeListenerOnRandomTarget ( IClientMessage request, DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder ) : IFuture
InvokeListenerOnTarget ( IClientMessage request, Address target, DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder ) : IFuture
InvokeOnConnection ( IClientMessage request, ClientConnection connection, bool bypassHeartbeat = false ) : IFuture
InvokeOnKeyOwner ( IClientMessage request, object key ) : IFuture
InvokeOnMember ( IClientMessage request, IMember member ) : IFuture
InvokeOnPartition ( IClientMessage request, int partitionId ) : IFuture
InvokeOnRandomTarget ( IClientMessage request ) : IFuture
InvokeOnTarget ( IClientMessage request, Address target ) : IFuture
RemoveEventHandler ( long correlationId ) : bool
Shutdown ( ) : void

Protected Methods

Method Description
ClientInvocationService ( HazelcastClient client ) : System
Invoke ( ClientInvocation invocation, Address address = null ) : IFuture

Private Methods

Method Description
CleanupEventHandlers ( ClientConnection connection ) : void
CleanupInvocations ( ClientConnection connection ) : void
EnsureOwnerConnectionAvailable ( ) : void
GetConnection ( Address address ) : ClientConnection
GetNewInvocationAddress ( ClientInvocation invocation ) : Address
GetRandomAddress ( ) : Address
GetRegistrationIdFromResponse ( Hazelcast.Client.Spi.ClientListenerInvocation invocation ) : string
HandleEventMessage ( IClientMessage eventMessage ) : void
HandleInvocationException ( ClientInvocation invocation, Exception exception ) : void
HandleResponseMessage ( IClientMessage response ) : void
InvokeInternal ( ClientInvocation invocation, Address address = null, ClientConnection connection = null, bool bypassHeartbeat = false ) : void
NextCorrelationId ( ) : long
ReregisterListener ( ClientListenerInvocation invocation ) : IFuture
ShouldRetryInvocation ( ClientInvocation invocation, Exception exception ) : bool
TryRegisterInvocation ( long correlationId, ClientInvocation request ) : bool
TrySend ( ClientInvocation clientInvocation, ClientConnection connection ) : bool
UnregisterInvocation ( long correlationId ) : void
UpdateInvocation ( ClientInvocation clientInvocation, ClientConnection connection ) : void
ValidateInvocation ( ClientInvocation clientInvocation, ClientConnection connection, bool bypassHeartbeat ) : void

Method Details

CleanUpConnectionResources() public method

public CleanUpConnectionResources ( ClientConnection connection ) : void
connection Hazelcast.Client.Connection.ClientConnection
return void

ClientInvocationService() protected method

protected ClientInvocationService ( HazelcastClient client ) : System
client HazelcastClient
return System

ConnectionAdded() public method

public ConnectionAdded ( ClientConnection connection ) : void
connection Hazelcast.Client.Connection.ClientConnection
return void

ConnectionRemoved() public method

public ConnectionRemoved ( ClientConnection connection ) : void
connection Hazelcast.Client.Connection.ClientConnection
return void

HandleClientMessage() public method

public HandleClientMessage ( IClientMessage message ) : void
message IClientMessage
return void

Invoke() protected method

protected Invoke ( ClientInvocation invocation, Address address = null ) : IFuture
invocation ClientInvocation
address Hazelcast.IO.Address
return IFuture

InvokeListenerOnConnection() public method

public InvokeListenerOnConnection ( IClientMessage request, DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder, ClientConnection connection ) : IFuture
request IClientMessage
handler DistributedEventHandler
responseDecoder DecodeStartListenerResponse
connection Hazelcast.Client.Connection.ClientConnection
return IFuture

InvokeListenerOnKeyOwner() public abstract method

public abstract InvokeListenerOnKeyOwner ( IClientMessage request, object key, DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder ) : IFuture
request IClientMessage
key object
handler DistributedEventHandler
responseDecoder DecodeStartListenerResponse
return IFuture

InvokeListenerOnPartition() public abstract method

public abstract InvokeListenerOnPartition ( IClientMessage request, int partitionId, DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder ) : IFuture
request IClientMessage
partitionId int
handler DistributedEventHandler
responseDecoder DecodeStartListenerResponse
return IFuture

InvokeListenerOnRandomTarget() public abstract method

public abstract InvokeListenerOnRandomTarget ( IClientMessage request, DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder ) : IFuture
request IClientMessage
handler DistributedEventHandler
responseDecoder DecodeStartListenerResponse
return IFuture

InvokeListenerOnTarget() public abstract method

public abstract InvokeListenerOnTarget ( IClientMessage request, Address target, DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder ) : IFuture
request IClientMessage
target Hazelcast.IO.Address
handler DistributedEventHandler
responseDecoder DecodeStartListenerResponse
return IFuture

InvokeOnConnection() public method

public InvokeOnConnection ( IClientMessage request, ClientConnection connection, bool bypassHeartbeat = false ) : IFuture
request IClientMessage
connection Hazelcast.Client.Connection.ClientConnection
bypassHeartbeat bool
return IFuture

InvokeOnKeyOwner() public abstract method

public abstract InvokeOnKeyOwner ( IClientMessage request, object key ) : IFuture
request IClientMessage
key object
return IFuture

InvokeOnMember() public abstract method

public abstract InvokeOnMember ( IClientMessage request, IMember member ) : IFuture
request IClientMessage
member IMember
return IFuture

InvokeOnPartition() public abstract method

public abstract InvokeOnPartition ( IClientMessage request, int partitionId ) : IFuture
request IClientMessage
partitionId int
return IFuture

InvokeOnRandomTarget() public abstract method

public abstract InvokeOnRandomTarget ( IClientMessage request ) : IFuture
request IClientMessage
return IFuture

InvokeOnTarget() public abstract method

public abstract InvokeOnTarget ( IClientMessage request, Address target ) : IFuture
request IClientMessage
target Address
return IFuture

RemoveEventHandler() public method

public RemoveEventHandler ( long correlationId ) : bool
correlationId long
return bool

Shutdown() public method

public Shutdown ( ) : void
return void