Click or drag to resize

IIdGeneratorNewId Method

Generates and returns cluster-wide unique id.

Namespace:  Hazelcast.Core
Assembly:  Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.3
Syntax
long NewId()

Return Value

Type: Int64
cluster-wide new unique id
Remarks
Generates and returns cluster-wide unique id. Generated ids are guaranteed to be unique for the entire cluster as long as the cluster is live. If the cluster restarts then id generation will start from 0.
See Also