IHazelcastClient Interface
Namespace: Hazelcast
Assembly: Hazelcast.Net.dll
Represents the Hazelcast client.
The Hazelcast client is the entry point to all interactions with an Hazelcast cluster. A client is created by a HazelcastClientFactory. Before it can be used, it needs to be opened via the @Hazelcast.IHazelcastClient.OpenAsync* method. After it has been used, it needs to be disposed in order to properly release its resources. For example:
var options = new HazelcastOptionsBuilder.Build();
var client = await HazelcastClientFactory.StartNewClientAsync(options);
// ... use the client ...
await client.DisposeAsync();
public interface IHazelcastClient : IAsyncDisposable
Inherited Members
Properties
| Name | Description |
|---|---|
| CPSubsystem | Gets the CP subsystem. |
| ClusterName | Gets the name of the cluster. |
| ClusterVersion | Gets the cluster version. |
| DynamicOptions | Gets a service that can dynamically configure cluster-side objects. |
| Id | Gets the unique identifier of this client. |
| IsActive | Whether the client is active. |
| IsConnected | Whether the client is connected. |
| Members | Gets a snapshot of the members that the cluster declared to this client. |
| Name | Gets the name of this client. |
| Options | Gets the options that were used to configure this client. |
| Sql | Returns a service to execute distributed SQL queries. |
| State | Gets the client state. |