java.lang.Object
me.ahoo.cosid.runtime.RuntimeSpec
Everything a
CosIdRuntime starts from (07-runtime-and-spring.md §1). Spring, the server, the migration tool
and hand-written code all build one, with builder(String); toBuilder() changes one. Immutable;
the builder is the only way to create one, so fields can be added with a default (api-freeze.md §4).-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeSpec.BuilderA builder of a spec without stores, machine slot or generators.booleanThe generators by name; the one named "default" is the 4.x share.inthashCode()machine()The machine slot; required when a time-based generator exists.machines()The named machines (D37), such as a slot in a namespace shared by several services: a time-based generator chooses one by name (GeneratorSpec.Snowflake.machine()); only the chosen ones start.The namespace of the range keys and slot leases.stores()The stores by name.A builder holding this spec, to change it.toString()
-
Field Details
-
DEFAULT_GENERATOR
- See Also:
-
DEFAULT_MACHINE
The name of themachine()among the machines; no named machine may take it.- See Also:
-
-
Method Details
-
builder
A builder of a spec without stores, machine slot or generators.- Parameters:
namespace- the namespace of the range keys and slot leases, not blank- Returns:
- the builder
-
toBuilder
A builder holding this spec, to change it.- Returns:
- the builder
-
namespace
The namespace of the range keys and slot leases.- Returns:
- the namespace
-
stores
The stores by name.- Returns:
- the stores, unmodifiable
-
machine
The machine slot; required when a time-based generator exists.- Returns:
- the machine slot, empty for none
-
machines
The named machines (D37), such as a slot in a namespace shared by several services: a time-based generator chooses one by name (GeneratorSpec.Snowflake.machine()); only the chosen ones start.- Returns:
- the named machines, unmodifiable; default none
-
generators
The generators by name; the one named "default" is the 4.x share.- Returns:
- the generators, unmodifiable
-
equals
-
hashCode
public int hashCode() -
toString
-