Module me.ahoo.cosid.core
Package me.ahoo.cosid.runtime
package me.ahoo.cosid.runtime
The runtime: a declarative
RuntimeSpec, the options of one start, and
CosIdRuntime, which owns the stores, the machine slots and the generators
(07-runtime-and-spring.md §1).-
ClassDescriptionAn item of a generator's codec list (07-runtime-and-spring.md §4.1).A user codec, by class name or (in Spring) bean name, resolved through
RuntimeOptions.codecs().me.ahoo.cosid.codec.DatePrefix.me.ahoo.cosid.codec.Friendly; time-based generators only.A codec instance, for specs built in code.A text prefix.me.ahoo.cosid.codec.Radix.A text suffix.The one registry and lifecycle owner of stores, the machine slot and generators (07-runtime-and-spring.md §1).A generator of aRuntimeSpec, by strategy.A time-based generator wider than along(Layout.COSID_80by default), issuing parts and text only.Builds aGeneratorSpec.CosId80.A userlonggenerator by reference, for configuration:CosIdRuntime.startresolves the reference throughRuntimeOptions.generators()and fails when it resolves to nothing.Builds aGeneratorSpec.Custom.A declared generator that is not created (D24, 07-runtime-and-spring.md §4.1): looking it up throwsGeneratorDisabledException.A userlonggenerator instance, for specs built in code.Builds aGeneratorSpec.Instance.A periodic segment generator.Builds aGeneratorSpec.PeriodicSegment.A segment generator.Builds aGeneratorSpec.Segment.A time-based generator packinglongids.Builds aGeneratorSpec.Snowflake.UUIDv7 ids (D46, RFC 9562 §5.7, a 16-bit counter):UuidV7Generator, ordered within the instance and unique without coordination.Builds aGeneratorSpec.UuidV7; it has no settings yet, and may gain some with defaults.The codec of aGeneratorSpec.PeriodicSegmentgenerator.GroupedCodec.datePrefix(me.ahoo.cosid.segment.Period, String, me.ahoo.cosid.codec.IdCodec, java.util.function.UnaryOperator): the period key, the delimiter, then the value;outerdecorates the whole, so with a prefix in it the period follows a business prefix (the 4.xgroup-prefix.before-prefix).A codec instance, for specs built in code.GroupedCodec.valueOnly(me.ahoo.cosid.codec.IdCodec): the text holds the value alone, without its period (the 4.xgroup-prefix.enabled = false); such text cannot be decoded.Resolves the host part of a derived owner key (07-runtime-and-spring.md §1.1); Spring Cloud supplies one backed byInetUtils.The machine slot of a runtime (D18, 05-machine-lease.md).A slot leased from a store.Builds aMachineSpec.Leased.A slot the user keeps unique, with a local window file.Builds aMachineSpec.Static.The codec of aGeneratorSpec.CosId80generator.A codec instance, for specs built in code.What aCosIdRuntimestarts with besides itsRuntimeSpec: everything that is not configuration.BuildsRuntimeOptions.Everything aCosIdRuntimestarts from (07-runtime-and-spring.md §1).Builds aRuntimeSpec.A store of aRuntimeSpec, declared once and referred to by name.Builds aStoreSpec.