public interface Config
| Modifier and Type | Method and Description |
|---|---|
java.time.OffsetDateTime |
creationTime(long snowflake) |
long |
creationTimeMillis(long snowflake) |
Datacenter |
datacenter(long datacenterId) |
long |
datacenterBits() |
long |
epoch() |
java.time.OffsetDateTime |
expirationDate()
Returns the day that this config set-up can't generate Snowflakes anymore due to it overflowing the
Bits#TIMESTAMP bits. |
long |
expirationDateMillis()
Returns the day that this config set-up can't generate Snowflakes anymore due to it overflowing the
Bits#TIMESTAMP bits. |
long |
sequenceBits() |
long |
timeRemaining()
Gives how much time until this config expire.
|
long |
timestampBits() |
boolean |
valid()
Returns if this config can still generate Snowflakes.
|
Worker |
worker(long datacenterId,
long workerId) |
long |
workerBits() |
java.time.OffsetDateTime creationTime(long snowflake)
long creationTimeMillis(long snowflake)
Datacenter datacenter(long datacenterId)
long datacenterBits()
long epoch()
java.time.OffsetDateTime expirationDate()
Bits#TIMESTAMP bits.OffsetDateTime of when it will happen.long expirationDateMillis()
Bits#TIMESTAMP bits.long sequenceBits()
long timeRemaining()
long timestampBits()
boolean valid()
Worker worker(long datacenterId, long workerId)
long workerBits()