add method

This commit is contained in:
looly
2021-12-17 16:39:20 +08:00
parent b31b8d6626
commit b7e46ee63d
2 changed files with 4 additions and 1 deletions

View File

@@ -269,6 +269,7 @@ public class IdUtil {
* 终端ID 数据中心ID 默认为1
*
* @return nextId
* @since 5.7.18
*/
public static long getSnowflakeNextId() {
return getSnowflake().nextId();
@@ -279,6 +280,7 @@ public class IdUtil {
* 终端ID 数据中心ID 默认为1
*
* @return nextIdStr
* @since 5.7.18
*/
public static String getSnowflakeNextIdStr() {
return getSnowflake().nextIdStr();