- All Implemented Interfaces:
Serializable, Comparable<ProfileOrganizer.Slice>, java.lang.constant.Constable
- Enclosing class:
ProfileOrganizer
Defines peer selection slicing modes for tier-based peer organization.
Enumerates different strategies for dividing peers into subsets based on performance tiers and capacity requirements. Used to control which portions of the peer population are considered during selection operations.
Supports bit masking for combining multiple selection criteria and provides predefined constants for common slicing patterns including full selection, tier-based selection, and capacity-limited selection modes.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsField Summary
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic ProfileOrganizer.SliceReturns the enum constant of this class with the specified name.static ProfileOrganizer.Slice[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
SLICE_ALL
All peers.SLICE_0_1
Peers in sub-tier 0 or 1.SLICE_2_3
Peers in sub-tier 2 or 3.SLICE_0
Peers in sub-tier 0.SLICE_1
Peers in sub-tier 1.SLICE_2
Peers in sub-tier 2.SLICE_3
Peers in sub-tier 3.
Field Details
mask
final int maskSelection mask.val
final int valSelection value.
Constructor Details
Slice
private Slice(int mask, int val) Creates one masked slice.- Parameters:
mask- the bits to matchval- the value those bits must have
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