Interface NanoflakeGenerator

All Known Implementing Classes:
NanoflakeLocalGenerator

public interface NanoflakeGenerator
A generator of nanoflakes.
  • Method Details

    • next

      Nanoflake next()
      Gets the next nanoflake.
      Returns:
      a new, generated nanoflake.
    • epochMillis

      long epochMillis()
      Gets this nanoflake generator's epoch.
      Returns:
      the epoch in milliseconds.
    • epoch

      default OffsetDateTime epoch()
      Gets this nanoflake generator's epoch as an OffsetDateTime.
      Returns:
      a OffsetDateTime set to the epoch time.