Enum Class MachineProperties.Distributor.Type
java.lang.Object
java.lang.Enum<MachineProperties.Distributor.Type>
me.ahoo.cosid.spring.boot.starter.machine.MachineProperties.Distributor.Type
- All Implemented Interfaces:
Serializable,Comparable<MachineProperties.Distributor.Type>,Constable
- Enclosing class:
- MachineProperties.Distributor
public static enum MachineProperties.Distributor.Type
extends Enum<MachineProperties.Distributor.Type>
Enumeration of supported machine ID distributor types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDatabase-based distribution using JDBC.Manual assignment of machine IDs.MongoDB-based distribution.Proxy service-based distribution.Redis-based distribution.Distribution based on Kubernetes StatefulSet ordinal.ZooKeeper-based distribution. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MachineProperties.Distributor.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MANUAL
Manual assignment of machine IDs. Requires explicit configuration of machine IDs. -
STATEFUL_SET
Distribution based on Kubernetes StatefulSet ordinal. Uses StatefulSet pod index for machine ID assignment. -
JDBC
Database-based distribution using JDBC. Stores machine ID assignments in a relational database. -
MONGO
MongoDB-based distribution. Uses MongoDB for coordinating machine ID assignments. -
REDIS
Redis-based distribution. Uses Redis for atomic machine ID allocation. -
ZOOKEEPER
ZooKeeper-based distribution. Uses ZooKeeper for distributed coordination. -
PROXY
Proxy service-based distribution. Delegates machine ID allocation to a proxy service.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-