java.lang.Object
me.ahoo.cosid.runtime.MachineSpec.Static
- All Implemented Interfaces:
MachineSpec
- Enclosing interface:
MachineSpec
A slot the user keeps unique, with a local window file.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface me.ahoo.cosid.runtime.MachineSpec
MachineSpec.Leased, MachineSpec.Static -
Method Summary
Modifier and TypeMethodDescriptionahead()How far ahead the ceiling is written.intbits()The slot bits.static MachineSpec.Static.Builderbuilder(int slot) A builder of a static slot.booleaninthashCode()The namespace of the slot leases (D37): a machine shared by several services, such as the slot of a cosid80 generator unique across them, names its own; every machine of a runtime has another namespace.The floor when the file does not exist yet (given by the migration tool).intslot()The slot.The window file; none means no clock regression protection.toString()withNamespace(String namespace) This machine in another namespace.
-
Method Details
-
builder
A builder of a static slot.- Parameters:
slot- the slot- Returns:
- the builder
-
bits
public int bits()The slot bits.- Specified by:
bitsin interfaceMachineSpec- Returns:
- the slot bits; default 10
-
slot
public int slot()The slot.- Returns:
- the slot
-
stateFile
The window file; none means no clock regression protection.- Returns:
- the window file; default none
-
ahead
How far ahead the ceiling is written.- Returns:
- the distance; default 10s
-
notBefore
The floor when the file does not exist yet (given by the migration tool).- Returns:
- the floor; default none
-
namespace
Description copied from interface:MachineSpecThe namespace of the slot leases (D37): a machine shared by several services, such as the slot of a cosid80 generator unique across them, names its own; every machine of a runtime has another namespace.- Specified by:
namespacein interfaceMachineSpec- Returns:
- the namespace; empty for the
RuntimeSpec.namespace()
-
withNamespace
This machine in another namespace.- Parameters:
namespace- the namespace- Returns:
- the machine
-
equals
-
hashCode
public int hashCode() -
toString
-