Class MachineProperties.Distributor

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

public static class MachineProperties.Distributor extends Object
Configuration for machine ID distribution strategies.

This class configures how machine IDs are allocated and distributed across multiple instances in a distributed system. Different strategies are available for different deployment scenarios.

  • Field Details

  • Constructor Details

    • Distributor

      public Distributor()
      Constructs a new Distributor configuration with default Redis and Mongo settings.
  • Method Details

    • getType

      Gets the distributor type.
      Returns:
      the distributor type
    • setType

      public void setType(MachineProperties.Distributor.Type type)
      Sets the distributor type.
      Parameters:
      type - the distributor type to set
    • getManual

      public MachineProperties.Manual getManual()
      Gets the manual configuration.
      Returns:
      the manual configuration, or null if not set
    • setManual

      public void setManual(MachineProperties.Manual manual)
      Sets the manual configuration.
      Parameters:
      manual - the manual configuration to set
    • getRedis

      public MachineProperties.Redis getRedis()
      Gets the Redis configuration.
      Returns:
      the Redis configuration
    • setRedis

      public void setRedis(MachineProperties.Redis redis)
      Sets the Redis configuration.
      Parameters:
      redis - the Redis configuration to set
    • getMongo

      public MachineProperties.Mongo getMongo()
      Gets the MongoDB configuration.
      Returns:
      the MongoDB configuration
    • setMongo

      public void setMongo(MachineProperties.Mongo mongo)
      Sets the MongoDB configuration.
      Parameters:
      mongo - the MongoDB configuration to set