Interface MachineSpec

All Known Implementing Classes:
MachineSpec.Leased, MachineSpec.Static

public sealed interface MachineSpec permits MachineSpec.Leased, MachineSpec.Static
The machine slot of a runtime (D18, 05-machine-lease.md).

The variants are the current snapshot of a closed set of specs: a minor version may add a variant, so keep a default branch in a switch over them (D40). The variants are immutable and built with their builders, the only way to create one, so fields can be added with a default (api-freeze.md ยง4).

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A slot leased from a store.
    static final class 
    A slot the user keeps unique, with a local window file.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The slot bits: the slots are [0, 2^bits).
    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.
  • Method Details

    • bits

      int bits()
      The slot bits: the slots are [0, 2^bits).
      Returns:
      the slot bits
    • namespace

      Optional<String> namespace()
      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.
      Returns:
      the namespace; empty for the RuntimeSpec.namespace()