Class MachineProperties.Manual
java.lang.Object
me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Manual
- Enclosing class:
- MachineProperties
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the manually assigned machine ID.voidsetMachineId(Integer machineId) Sets the manually assigned machine ID.
-
Constructor Details
-
Manual
public Manual()
-
-
Method Details
-
getMachineId
Gets the manually assigned machine ID.- Returns:
- the machine ID, or null if not set
-
setMachineId
Sets the manually assigned machine ID.- Parameters:
machineId- the machine ID to set
-