Skip to content

snowflake, simple and effective handle clock moved backwards.

Notifications You must be signed in to change notification settings

timestatic/snowflake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

snowflake

snowflake, simple and effective handle clock moved backwards.


Example:

public class Sample {

    public static void main(String[] args) {
        ZookeeperWorker.init("127.0.0.1");
        System.out.println(SnowFlakeWorker.getInstance().nextId());
        System.out.println(SnowFlakeWorker.getInstance().nextId());
    }
}

About

snowflake, simple and effective handle clock moved backwards.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages