public class ToFinestTimeUUID extends Object implements LongFunction<UUID>
ToEpochTimeUUID.
For the variants that have a String argument in the constructor, this is
a parsable datetime that is used as the base time for all produced values.
Setting this allows you to set the start of the time range for all timeuuid
values produced. All times are parsed for UTC. All time use ISO date ordering,
meaning that the most significant fields always go before the others.
The valid formats, in joda specifier form are:
| Constructor and Description |
|---|
ToFinestTimeUUID()
Create version 1 timeuuids with a per-host node and empty clock data.
|
ToFinestTimeUUID(long node)
Create version 1 timeuuids with a specific static node and empty clock data.
|
ToFinestTimeUUID(long node,
long clock)
Create version 1 timeuuids with a specific static node and specific clock data.
|
ToFinestTimeUUID(String baseTimeSpec)
Create version 1 timeuuids with a per-host node and empty clock data.
|
ToFinestTimeUUID(String baseTimeSpec,
long node)
Create version 1 timeuuids with a specific static node and empty clock data.
|
ToFinestTimeUUID(String baseTimeSpec,
long node,
long clock)
Create version 1 timeuuids with a specific static node and specific clock data.
|
public ToFinestTimeUUID()
public ToFinestTimeUUID(long node)
node - a fixture value for testing that replaces node and clock bitspublic ToFinestTimeUUID(long node,
long clock)
node - a fixture value for testing that replaces node bitsclock - a fixture value for testing that replaces clock bitspublic ToFinestTimeUUID(String baseTimeSpec)
baseTimeSpec - - a string specification for the base time valuepublic ToFinestTimeUUID(String baseTimeSpec, long node)
baseTimeSpec - - a string specification for the base time valuenode - a fixture value for testing that replaces node and clock bitspublic ToFinestTimeUUID(String baseTimeSpec, long node, long clock)
node - a fixture value for testing that replaces node bitsclock - a fixture value for testing that replaces clock bitsbaseTimeSpec - - a string specification for the base time valuepublic UUID apply(long timeClicks)
apply in interface LongFunction<UUID>Copyright © 2018. All rights reserved.