![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | HazelcastClientGetIdGenerator Method |
Creates cluster-wide unique IDs.
Namespace:
Hazelcast.Client
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.0
Syntaxpublic IIdGenerator GetIdGenerator(
string name
)
Public Function GetIdGenerator (
name As String
) As IIdGenerator
public:
virtual IIdGenerator^ GetIdGenerator(
String^ name
) sealed
abstract GetIdGenerator :
name : string -> IIdGenerator
override GetIdGenerator :
name : string -> IIdGenerator
Parameters
- name
- Type: SystemString
name of the IIdGenerator
Return Value
Type:
IIdGeneratorIIdGenerator for the given name
Implements
IHazelcastInstanceGetIdGenerator(String)
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