Constructs a Generator instance for the given node and Scheme.
Constructs a Generator instance for the given node and Scheme.
The returned Generator will generate Ids that come after the provided Id.
The node of the Generator.
The last Id produced for the provided node.
The scheme which will structure the Generator's Ids.
If node, timestamp or sequence are out of Scheme's limits. Exception is also thrown if provided node doesn't match the node of the provided Id.
Providing the last Id generated for the specific node is a safety mechanism which will protect you in the case of a system clock going back in time when the application is restarted.
Constructs a Generator instance for the given node and Scheme.
Constructs a Generator instance for the given node and Scheme.
The returned Generator will generate Ids that come after the Id specified by the given timestamp and sequence.
The node of the Generator.
The timestamp of the last Id of this node.
The sequence of the last Id of this node.
The scheme which will structure the Generator's Ids.
If node, timestamp or sequence are out of Scheme's limits.
Providing the timestamp and the sequence of the last Id generated for the specific node is a safety mechanism which will protect you in the case of a system clock going back in time when the application is restarted.
Constructs a Generator instance for the given node and Scheme.
Constructs a Generator instance for the given node and Scheme.
The node of the Generator.
The scheme which will structure the Generator's Ids.
If node is out of Scheme's limits.
Factory for Generator instances.