Enum Class HealingStrategy
- All Implemented Interfaces:
Serializable, Comparable<HealingStrategy>, Constable
Effective element recovery strategy.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic HealingStrategycurrent()Resolves the current strategy while preserving the legacyheal-enabled=trueHealenium configuration.static HealingStrategyParses a configured strategy.booleanbooleanstatic HealingStrategyReturns the enum constant of this class with the specified name.static HealingStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DISABLED
-
HEALENIUM
-
SHAFT_HEAL
-
COMPOSITE
-
-
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
-
current
Resolves the current strategy while preserving the legacyheal-enabled=trueHealenium configuration.- Returns:
- effective strategy
-
parse
Parses a configured strategy.- Parameters:
value- configured value- Returns:
- normalized strategy, or
DISABLEDfor unknown values
-
usesHealenium
public boolean usesHealenium()- Returns:
- whether Healenium should wrap the driver
-
usesShaftHeal
public boolean usesShaftHeal()- Returns:
- whether the optional SHAFT Heal provider should be called
-