Package com.bytedesk.core.uid.impl
Class UidProperties
java.lang.Object
com.bytedesk.core.uid.impl.UidProperties
UID 的配置
- Author:
- wujun
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
是否容忍时钟回拨, 默认:trueprivate long
时间基点对应的毫秒数private String
时间基点.private long
时钟回拨最长容忍时间(秒)private int
序列号占用的位数private int
时间增量值占用位数。private int
工作机器ID占用的位数 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
timeBits
private int timeBits时间增量值占用位数。当前时间相对于时间基点的增量值,单位为秒 -
workerBits
private int workerBits工作机器ID占用的位数 -
seqBits
private int seqBits序列号占用的位数 -
epochStr
时间基点. 例如 2019-02-20 (毫秒: 1550592000000) -
epochSeconds
private long epochSeconds时间基点对应的毫秒数 -
enableBackward
private boolean enableBackward是否容忍时钟回拨, 默认:true -
maxBackwardSeconds
private long maxBackwardSeconds时钟回拨最长容忍时间(秒)
-
-
Constructor Details
-
UidProperties
public UidProperties()
-