java.lang.Object
me.ahoo.cosid.observe.GeneratorInfo
What
A listed key is never renamed nor removed; a minor version may add keys. The values are only
CosIdRuntime.describe() tells about a generator; replaces the 4.x Stat types. Immutable; built
with builder(String, String), the only way to create one, so fields can be added with a default
(api-freeze.md ยง4).
The details() keys by strategy (R1-core-17):
| strategy | keys |
|---|---|
snowflake, cosid80 | epoch unit timeBits nodeBits seqBits lastIssuedMillis slot floor
ceiling slotValid node machine machineNamespace (node is the slot plus the slot offset, the node the ids
carry) |
segment | key step maxBatch lookahead reserveTimeout batch held |
periodic-segment | those of segment, and zone prewarm sealAfter period |
custom | class |
uuidv7 | version text |
| any | generated while counting (RuntimeOptions.countGenerated); a disabled generator has
disabled alone |
String,
Number and Boolean.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratorInfo.BuilderA builder of a generator description.details()Layout, slot, window, ready range headroom, batch size and the like.booleaninthashCode()name()The generator name.store()The store name.strategy()The strategy:snowflake,cosid80,segment,periodic-segment,customoruuidv7.toString()
-
Method Details
-
builder
A builder of a generator description.- Parameters:
name- the generator namestrategy-snowflake,cosid80,segment,periodic-segment,customoruuidv7- Returns:
- the builder
-
name
The generator name.- Returns:
- the name
-
strategy
The strategy:snowflake,cosid80,segment,periodic-segment,customoruuidv7.- Returns:
- the strategy
-
store
The store name.- Returns:
- the store name; empty (the default) for time-based, custom and uuidv7 generators
-
details
Layout, slot, window, ready range headroom, batch size and the like.- Returns:
- the details, unmodifiable; default none
-
equals
-
hashCode
public int hashCode() -
toString
-