SnowflakeGenerator.nextId

Generates a new unique id. Calls to this method are synchronized such that ids from this generator are generated sequentially.

struct SnowflakeGenerator
long
nextId
()

Return Value

Type: long

The id.

Meta