Class SnowflakeIdStateParser

java.lang.Object
me.ahoo.cosid.snowflake.SnowflakeIdStateParser
Direct Known Subclasses:
MillisecondSnowflakeIdStateParser, SecondSnowflakeIdStateParser

@ThreadSafe public abstract class SnowflakeIdStateParser extends Object
SnowflakeId State Parser.
  • Field Details

    • DELIMITER

      public static final String DELIMITER
      See Also:
    • zoneId

      protected final ZoneId zoneId
    • epoch

      protected final long epoch
    • sequenceBit

      protected final int sequenceBit
    • sequenceMask

      protected final long sequenceMask
    • machineBit

      protected final int machineBit
    • machineMask

      protected final long machineMask
    • machineLeft

      protected final int machineLeft
    • timestampBit

      protected final int timestampBit
    • timestampMask

      protected final long timestampMask
    • timestampLeft

      protected final int timestampLeft
  • Constructor Details

    • SnowflakeIdStateParser

      public SnowflakeIdStateParser(long epoch, int timestampBit, int machineBit, int sequenceBit)
    • SnowflakeIdStateParser

      public SnowflakeIdStateParser(long epoch, int timestampBit, int machineBit, int sequenceBit, ZoneId zoneId)
  • Method Details