- java.lang.Object
-
- org.openingo.spring.boot.extension.gedid.engine.snowflake.Snowflake
-
-
Constructor Summary
Constructors
| Constructor and Description |
Snowflake(Long workerId,
Long dataCenterId)
构造函数
|
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
nextId
public Long nextId()
获得下一个ID (该方法是线程安全的)
- Returns:
- SnowflakeId
Copyright © 2021. All rights reserved.