Class UidProperties

java.lang.Object
com.bytedesk.core.uid.impl.UidProperties

@ConfigurationProperties(prefix="bytedesk.uid") public class UidProperties extends Object
UID 的配置
Author:
wujun
  • Field Details

    • timeBits

      private int timeBits
      时间增量值占用位数。当前时间相对于时间基点的增量值,单位为秒
    • workerBits

      private int workerBits
      工作机器ID占用的位数
    • seqBits

      private int seqBits
      序列号占用的位数
    • epochStr

      private String epochStr
      时间基点. 例如 2019-02-20 (毫秒: 1550592000000)
    • epochSeconds

      private long epochSeconds
      时间基点对应的毫秒数
    • enableBackward

      private boolean enableBackward
      是否容忍时钟回拨, 默认:true
    • maxBackwardSeconds

      private long maxBackwardSeconds
      时钟回拨最长容忍时间(秒)
  • Constructor Details

    • UidProperties

      public UidProperties()