Package com.linkedin.davinci.helix
Enum Class LeaderFollowerPartitionStateModelFactory.LeaderFollowerThreadPoolStrategy
java.lang.Object
java.lang.Enum<LeaderFollowerPartitionStateModelFactory.LeaderFollowerThreadPoolStrategy>
com.linkedin.davinci.helix.LeaderFollowerPartitionStateModelFactory.LeaderFollowerThreadPoolStrategy
- All Implemented Interfaces:
Serializable
,Comparable<LeaderFollowerPartitionStateModelFactory.LeaderFollowerThreadPoolStrategy>
,Constable
- Enclosing class:
- LeaderFollowerPartitionStateModelFactory
public static enum LeaderFollowerPartitionStateModelFactory.LeaderFollowerThreadPoolStrategy
extends Enum<LeaderFollowerPartitionStateModelFactory.LeaderFollowerThreadPoolStrategy>
The leader follower state thread pool strategy specifies how thread pools are allocated for Helix state transition.
Today, two strategies are supported:
1. single pool strategy - a single thread pool for all store version Helix state transition.
2. dual pool strategy - system has two thread pools, one for current and backup versions and a second one for
future versions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SINGLE_POOL_STRATEGY
public static final LeaderFollowerPartitionStateModelFactory.LeaderFollowerThreadPoolStrategy SINGLE_POOL_STRATEGY -
DUAL_POOL_STRATEGY
public static final LeaderFollowerPartitionStateModelFactory.LeaderFollowerThreadPoolStrategy DUAL_POOL_STRATEGY
-
-
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
public static LeaderFollowerPartitionStateModelFactory.LeaderFollowerThreadPoolStrategy valueOf(String name) 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
-