An open API service indexing awesome lists of open source software.

https://github.com/linusling/uniqueidutil

分布式全局唯一ID生成工具。
https://github.com/linusling/uniqueidutil

java snowflake twitter unique-id

Last synced: about 1 year ago
JSON representation

分布式全局唯一ID生成工具。

Awesome Lists containing this project

README

          

# UniqueIDUtil

Twitter [snowflake](https://github.com/twitter-archive/snowflake) 算法的 Java 实现。

# How to use

```java
UniqueIDUtil.getInstance().nextId();
```
or
```java
UniqueIDUtil.getInstance(3, 4).nextId();
```