Package io.atomix.primitive.partition
Enum MemberGroupStrategy
- All Implemented Interfaces:
MemberGroupProvider,Serializable,Comparable<MemberGroupStrategy>,java.lang.constant.Constable
public enum MemberGroupStrategy extends Enum<MemberGroupStrategy> implements MemberGroupProvider
Member group strategy.
Member group strategies are default implementations of MemberGroupProvider for built-in node attributes.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description HOST_AWAREHost aware member group strategy.NODE_AWARENode aware member group strategy (the default).RACK_AWARERack aware member group strategy.ZONE_AWAREZone aware member group strategy. -
Method Summary
Modifier and Type Method Description static MemberGroupStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static MemberGroupStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ZONE_AWARE
Zone aware member group strategy.This strategy will create a member group for each unique zone in the cluster.
-
RACK_AWARE
Rack aware member group strategy.This strategy will create a member group for each unique rack in the cluster.
-
HOST_AWARE
Host aware member group strategy.This strategy will create a member group for each unique host in the cluster.
-
NODE_AWARE
Node aware member group strategy (the default).This strategy will create a member group for each node in the cluster, effectively behaving the same as if no member groups were defined.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-