Hazelcast Options
This page lists the complete set of options available to configure the Hazelcast .NET client. For more details regarding configuration itself, please refer to the Configuration page.
See HazelcastOptions for full documentation of the class.
Property | Summary |
---|---|
ClusterName | Gets or sets the name of the cluster. This must match the name of the cluster that the client is going to connect to. |
ClientName | Gets or sets the name of the client. This is optional. If no client name is specified, a name will be generated. |
Labels | Gets the set of client labels. |
LoadBalancer | Gets the SingletonServiceFactory<TService> for the ILoadBalancer. When set in the configuration file, it is defined as an injected type, for instance: where typeName is the name of the type, and args is an optional dictionary of arguments for the type constructor. In addition to custom type names, The default load balancer is the RoundRobinLoadBalancer. |
ServiceProvider | Gets the IServiceProvider. In dependency-injection scenario the service provider may be available, so that service factories can return injected services. In non-dependency-injection scenario, this returns |
LoggerFactory | Gets the SingletonServiceFactory<TService> for ILoggerFactory. The only option available for logging is the ILoggerFactory creator, which can only be set programmatically. All other logging options (level, etc.) are configured via the default Microsoft configuration system. See https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging for details and documentation. |
PatternMatcher | Gets or sets the configuration pattern matcher. This can only be set programmatically. |
NearCaches | Gets the dictionary which contains the NearCacheOptions for each near cache. |
Subscribers | Gets the list of subscribers. Subscribers can be added to the configuration programmatically via the AddSubscriber(IHazelcastClientEventSubscriber) method or any of its overloads. A subscriber is a class that implements IHazelcastClientEventSubscriber and subscribes the client to events as soon as the client is connected. In a configuration file, they are defined as an array of injected types, for instance: where typeName is the name of the type, and args is an optional dictionary of arguments for the type constructor. |
Authentication
Access AuthenticationOptions via options.Authentication.
Property | Summary |
---|---|
CredentialsFactory | Gets the SingletonServiceFactory<TService> for the ICredentialsFactory. When set in the configuration file, it is defined as an injected type, for instance: where typeName is the name of the type, and args is an optional dictionary of arguments for the type constructor. In addition, shortcuts exists for common credentials factory. The whole Username and password: Kerberos: Token: Supported encodings are: none and base64 . |
Heartbeat
Access HeartbeatOptions via options.Heartbeat.
Property | Summary |
---|---|
PeriodMilliseconds | Gets or sets the heartbeat period. Heartbeat will run periodically, and send a ping request to connections that have not been written to over the previous period. |
TimeoutMilliseconds | Gets or sets the timeout (how long to wait before declaring a connection down). Heartbeat will consider that connections that have not received data for the timeout duration, although they should have been pinged, are down. The timeout should be longer than the period. |
Messaging
Access MessagingOptions via options.Messaging.
Property | Summary |
---|---|
MinRetryDelayMilliseconds | Gets or sets the min retry delay. |
RetryTimeoutSeconds | Gets or sets the invocation timeout. The RetryTimeoutSeconds is a soft timeout that prevents retrying an invocation for too long in case it fails. It does not controls the duration of a single try, and does not abort it. And invocation single try can run for as long as the connection that supports it remains open. |
Networking
Access NetworkingOptions via options.Networking.
Property | Summary |
---|---|
Addresses | Gets or sets the list of initial addresses. The client uses this list to find a running member and connect to it. This initial member will then send the list of other members to the client. Each address must be a valid IPv4 or IPv6 address. |
ShuffleAddresses | Whether to shuffle addresses when attempting to connect to the cluster. |
SmartRouting | Whether smart routing is enabled. If true (default), client will route the key based operations to owner of the key at the best effort. Note that it however does not guarantee that the operation will always be executed on the owner, as the member table is only updated every 10 seconds. |
RedoOperations | Whether to retry operations. While sending the requests to related members, operations can fail due to various reasons. Read-only operations are retried by default. If you want to enable retry for the other operations, set this property to Note that it is not clear whether the operation is performed or not. For idempotent operations this is harmless, but for non idempotent ones retrying can cause undesirable effects. Also note that the redo can perform on any member. |
ReconnectMode | Gets or sets the ReconnectMode in case the client is disconnected. |
ConnectionTimeoutMilliseconds | Gets or sets the connection timeout. This timeout is used in various places. It is the connection timeout for each individual socket. It is also the timeout for cloud discovery. |
Ssl
Access SslOptions via options.Networking.Ssl.
Property | Summary |
---|---|
Enabled | Whether to enable SSL. |
ValidateCertificateChain | Whether to validate the certificate chain. |
ValidateCertificateName | Whether to validate the certificate name. |
CheckCertificateRevocation | Whether to check for certificate revocation. |
CertificateName | Gets or sets the name of the certificate. |
CertificatePath | Gets or sets the full path to the certificate file. |
CertificatePassword | Gets or sets the password for the certificate file. |
Protocol | Gets or sets the SSL protocol. The protocol must be a member of the SslProtocols enum, and currently only |
Cloud
Access CloudOptions via options.Networking.Cloud.
Property | Summary |
---|---|
Enabled | Whether Hazelcast Cloud is enabled. |
DiscoveryToken | Gets or sets the discovery token of the cluster. |
Url | Gets or sets the cloud url base. |
Socket
Access SocketOptions via options.Networking.Socket.
Property | Summary |
---|---|
BufferSizeKiB | The send and receive buffers size. The buffer size is expressed in Kibibytes, ie units of 1024 bytes. This sets the size of both the send and receive buffers. |
KeepAlive | Whether to keep the socket alive. |
LingerSeconds | The number of seconds to remain connected after the socket Close() method is called, or zero to disconnect immediately. |
TcpNoDelay | Whether the socket is using the Nagle algorithm. |
ConnectionRetry
Access ConnectionRetryOptions via options.Networking.ConnectionRetry.
Property | Summary |
---|---|
InitialBackoffMilliseconds | Gets or sets the initial back-off time in milliseconds. |
MaxBackoffMilliseconds | Gets or sets the maximum back-off time in milliseconds. |
Multiplier | Gets or sets the multiplier. |
ClusterConnectionTimeoutMilliseconds | Gets or sets the timeout in milliseconds. |
Jitter | Gets or sets the jitter. |
Events
Access EventsOptions via options.Events.
Property | Summary |
---|---|
SubscriptionCollectDelay | Gets or sets the delay before collecting subscriptions starts. |
SubscriptionCollectPeriod | Gets or sets the period of the subscription collection. |
SubscriptionCollectTimeout | Gets or sets the subscription collection timeout, after which a subscription is considered dead and removed. |
Metrics
Access MetricsOptions via options.Metrics.
Property | Summary |
---|---|
Enabled | Whether client statistics are enabled. |
PeriodSeconds | Gets or sets the period at which client metrics are sent to the cluster. |
Serialization
Access SerializationOptions via options.Serialization.
IIdentifiedDataSerializable, IPortable, custom serializers, and global serializer can be configured using this config.
Property | Summary |
---|---|
Endianness | Gets or sets the Endianness. This value should match the server configuration. |
ValidateClassDefinitions | Whether to check for class definition errors at start, and throw an Serialization Exception with error definition. |
PortableVersion | Gets or sets the portable version. |
ClassDefinitions | Gets the collection of IClassDefinition. This can only be done programmatically. |
PortableFactories | Gets the collection of FactoryOptions<T> of IPortableFactory. |
DataSerializableFactories | Gets the collection of FactoryOptions<T> of IDataSerializableFactory. |
Serializers | Gets the collection of SerializerOptions. |
GlobalSerializer
Access GlobalSerializerOptions via options.Serialization.GlobalSerializer.
Property | Summary |
---|---|
OverrideClrSerialization | Whether to fully override (and ignore) the native CLR serialization. |
NearCache
Access CommonNearCacheOptions via options.NearCache.
Property | Summary |
---|---|
ReconciliationIntervalSeconds | Gets or sets the reconciliation interval. |
MinReconciliationIntervalSeconds | Gets or sets the minimum reconciliation interval. |
MaxToleratedMissCount | Gets or sets the maximum tolerated miss count. |