NanoflakeLocalGenerator

class NanoflakeLocalGenerator(epoch: Long, generatorId: Long) : NanoflakeGenerator

A local generator of nanoflakes.

Parameters

epoch

the generator's epoch.

generatorId

the generator's ID.

Constructors

NanoflakeLocalGenerator
Link copied to clipboard
common
fun NanoflakeLocalGenerator(epoch: Long, generatorId: Long)
Creates a new local generator of nanoflakes.

Functions

epoch
Link copied to clipboard
common
open fun NanoflakeGenerator.epoch(): DateTime
Gets this nanoflake generator's epoch as an OffsetDateTime.
epochMillis
Link copied to clipboard
common
open override fun epochMillis(): Long
Gets this nanoflake generator's epoch.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
next
Link copied to clipboard
common
open operator override fun next(): Nanoflake
Gets the next nanoflake.
toString
Link copied to clipboard
common
open override fun toString(): String