package
uid
Type Members
-
trait
Generator extends AnyRef
-
case class
GeneratorException(message: String) extends RuntimeException with Product with Serializable
-
final
class
Id extends AnyVal
-
final
case class
Scheme(timestampBits: Long, nodeBits: Long, sequenceBits: Long, epoch: Long) extends Product with Serializable
Inherited from AnyRef
Inherited from Any
uid is a library for the generation and handling of unique 64-bit Ids.
Each Id encodes a timestamp, a node and a sequence. Specific implementations are achieved by defining a Scheme. Id creation is handled by a Generator.