java.lang.Object
me.ahoo.cosid.runtime.MachineSpec.Static.Builder
- Enclosing class:
MachineSpec.Static
Builds a
MachineSpec.Static.-
Method Summary
Modifier and TypeMethodDescriptionSets how far ahead the ceiling is written.bits(int bits) Sets the slot bits.build()Builds the static slot.Sets the namespace the machine belongs to (D37); a static machine leases nothing, but its namespace tells the machines of a runtime apart in events, metrics and health.Sets the floor when the file does not exist yet (given by the migration tool).Sets the window file.
-
Method Details
-
bits
Sets the slot bits.- Parameters:
bits- the slot bits; default 10- Returns:
- this builder
-
stateFile
Sets the window file.- Parameters:
stateFile- the window file; default none, which means no clock regression protection- Returns:
- this builder
-
ahead
Sets how far ahead the ceiling is written.- Parameters:
ahead- the distance; default 10s- Returns:
- this builder
-
notBefore
Sets the floor when the file does not exist yet (given by the migration tool).- Parameters:
notBefore- the floor; default none- Returns:
- this builder
-
namespace
Sets the namespace the machine belongs to (D37); a static machine leases nothing, but its namespace tells the machines of a runtime apart in events, metrics and health.- Parameters:
namespace- the namespace; default theRuntimeSpec.namespace()- Returns:
- this builder
-
build
Builds the static slot.- Returns:
- the static slot
-