Constructs the generator using a given node id and epoch offset.
Constructs the generator using a default epoch offset.
Generates a new unique id. Calls to this method are synchronized such that ids from this generator are generated sequentially.
Parses a snowflake id into its constituent parts.
The Snowflake generator is a thread-safe generator of unique "snowflake" ids, which guarantees that ids it generates will always be unique and always increasing in value, provided that there are no two generators with the same node id at the same time.
Here's a simple example of how to generate ids:
auto gen = SnowflakeGenerator(1); long id = gen.nextId;
For background info on this type of id, please see [Twitter's original blog post on the topic](https://blog.twitter.com/engineering/en_us/a/2010/announcing-snowflake).