java.lang.Object
me.ahoo.cosid.runtime.GeneratorSpec.CosId80.Builder
- Enclosing class:
GeneratorSpec.CosId80
Builds a
GeneratorSpec.CosId80.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the generator.codec(PartsCodecSpec codec) Sets the parts codec.Sets the layout: wider than 63 bits, with the Unix epoch and milliseconds (D36).Sets the machine whose slot the ids carry (D37).regression(ClockRegressionPolicy regression) Sets the clock regression policy.
-
Method Details
-
machine
Sets the machine whose slot the ids carry (D37).- Parameters:
machine- the machine name; default theRuntimeSpec.machine()- Returns:
- this builder
-
layout
Sets the layout: wider than 63 bits, with the Unix epoch and milliseconds (D36).- Parameters:
layout- the layout; defaultLayout.COSID_80- Returns:
- this builder
-
regression
Sets the clock regression policy.- Parameters:
regression- the policy; defaultClockRegressionPolicy.DEFAULT- Returns:
- this builder
-
codec
Sets the parts codec.- Parameters:
codec- the codec; default radix 62- Returns:
- this builder
-
build
Builds the generator.- Returns:
- the generator
-