UniqueId

value class UniqueId(val value: Long = nextValue.incrementAndGet())

Thread safe, single process 64 bit unique id. Not to be used if unique multi-process id generation is required.

Constructors

Link copied to clipboard
constructor(value: Long = nextValue.incrementAndGet())

Properties

Link copied to clipboard
val value: Long

Unique id's value. If value is not specified, all of the objects created with default value will have a unique id value.