java.lang.Object
me.ahoo.cosid.runtime.GeneratorSpec.Custom
- All Implemented Interfaces:
GeneratorSpec
- Enclosing interface:
GeneratorSpec
A user
long generator by reference, for configuration: CosIdRuntime.start resolves the reference
through RuntimeOptions.generators() and fails when it resolves to nothing.
The runtime does not own it (D41): it does not close, renew nor prefetch it, and it needs no store nor machine
slot. It takes part in every lookup (generator(name), stringGenerator(name), get(name,
type)), in IdFiller, in describe() (strategy custom, details class), in counting
and in GeneratorSpec.Disabled.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface me.ahoo.cosid.runtime.GeneratorSpec
GeneratorSpec.CosId80, GeneratorSpec.Custom, GeneratorSpec.Disabled, GeneratorSpec.Instance, GeneratorSpec.PeriodicSegment, GeneratorSpec.Segment, GeneratorSpec.Snowflake, GeneratorSpec.UuidV7 -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratorSpec.Custom.BuilderA builder of a generator by reference.codec()The codec list of its text ids, applied in order; as for aGeneratorSpec.Segment, without a layout, so neither aCodecSpec.Friendlynor aCodecSpec.DatePrefixfrom the id time.booleaninthashCode()The name the runtime resolves throughRuntimeOptions.generators(); in Spring a bean name.toString()
-
Method Details
-
builder
A builder of a generator by reference.- Parameters:
reference- the name the runtime resolves throughRuntimeOptions.generators(); in Spring a bean name- Returns:
- the builder
-
reference
The name the runtime resolves throughRuntimeOptions.generators(); in Spring a bean name.- Returns:
- the reference
-
codec
The codec list of its text ids, applied in order; as for aGeneratorSpec.Segment, without a layout, so neither aCodecSpec.Friendlynor aCodecSpec.DatePrefixfrom the id time.- Returns:
- the codec list; default empty, for none
-
equals
-
hashCode
public int hashCode() -
toString
-