Class TimeBasedUidGenerator
java.lang.Object
services.moleculer.service.MoleculerComponent
services.moleculer.uid.UidGenerator
services.moleculer.uid.XorShiftRandomUidGenerator
services.moleculer.uid.TimeBasedUidGenerator
- All Implemented Interfaces:
MoleculerLifecycle
Time-based standard UUID generator. The generated UUIDs can be sorted in
alphabetical order, which corresponds to a time-based order. If no such
sorting is required, use the faster faster
IncrementalUidGenerator in
production mode.- See Also:
-
Field Summary
Fields inherited from class XorShiftRandomUidGenerator
counter, prefix, rndFields inherited from class MoleculerComponent
broker, logger, name -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class XorShiftRandomUidGenerator
getPrefix, nextLong, setPrefix, startedMethods inherited from class MoleculerComponent
getBroker, getLogger, getName, stopped
-
Constructor Details
-
TimeBasedUidGenerator
public TimeBasedUidGenerator()
-
-
Method Details
-
nextUID
- Overrides:
nextUIDin classXorShiftRandomUidGenerator
-