public class Snowflake extends Object
0 - 0000000000 0000000000 0000000000 0000000000 0 - 00000 - 00000 - 000000000000第一位为未使用,接下来的41位为毫秒级时间(41位的长度可以使用69年)
Constructor and Description |
---|
Snowflake(long workerId,
long datacenterId)
构造
|
Copyright © 2021. All rights reserved.