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.


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


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.