Class MachineProperties.Manual

java.lang.Object
me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Manual
Enclosing class:
MachineProperties

public static class MachineProperties.Manual extends Object
Configuration for manual machine ID assignment.

When using manual distribution, the machine ID must be explicitly configured and must be unique across all instances.

  • Constructor Details

    • Manual

      public Manual()
  • Method Details

    • getMachineId

      public Integer getMachineId()
      Gets the manually assigned machine ID.
      Returns:
      the machine ID, or null if not set
    • setMachineId

      public void setMachineId(Integer machineId)
      Sets the manually assigned machine ID.
      Parameters:
      machineId - the machine ID to set