Skip to content

An unique ID player, who use several mechanisms to generate different unique ID.

License

Notifications You must be signed in to change notification settings

A-EYE-Team/UniqueIDPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniqueIDPlayer

An unique ID player, who use several mechanisms to generate unique ID ( Some maybe only unique in a limited scope of time ).

Why need Unique ID?

  • Unique IDs are required by nearly all distributed systems.
  • There are so many mechanisms, which you can play with. In this repo, we use a uniform API and multi-implementations, you can choose and switch any of them as you wish.

What id-generation mechanisms does UniqueIDPlayer provide?

  • coming soon

How to use

  • Get the UniqueIDPlayer instance, and get ids by nextStringId() or nextLongId().
UniqueIDPlayer player = UniqueIDPlayer.newBuilder().find("IDGeneratorName");
  • Use named uniqueid.player.config config file, and use default find()
UniqueIDPlayer player = UniqueIDPlayer.newBuilder().find();

__see sample config file at here

Contributor

About

An unique ID player, who use several mechanisms to generate different unique ID.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages