IHazelcastInstanceGetIdGenerator Method Hazelcast .Net Client Class Library
Creates cluster-wide unique IDs.

Namespace: Hazelcast.Core
Assembly: HazelcastClient3x (in HazelcastClient3x.dll) Version: 3.3.0.9
Syntax

IIdGenerator GetIdGenerator(
	string name
)

Parameters

name
Type: SystemString
name of the IIdGenerator

Return Value

Type: IIdGenerator
IIdGenerator for the given name
Remarks

Creates cluster-wide unique IDs. Generated IDs are long type primitive values between 0 and Int64.MaxValue . Id generation occurs almost at the speed of Interlocked.Increment(long) . Generated IDs are unique during the life cycle of the cluster. If the entire cluster is restarted, IDs start from 0 again.
See Also

Reference