Package me.ahoo.cosid.machine
Class MachineId
java.lang.Object
me.ahoo.cosid.machine.MachineId
Logical machine identifier for distributed ID generation.
This represents a logical machine ID that is not necessarily tied to a physical or virtual machine. It provides uniqueness across different processes/services which are isolated using namespaces.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MachineId
public MachineId(int machineId) Creates a new MachineId.- Parameters:
machineId- the machine ID value
-
-
Method Details