Enum Class MultiHostConnectionStrategy.TargetServerType
java.lang.Object
java.lang.Enum<MultiHostConnectionStrategy.TargetServerType>
io.r2dbc.postgresql.MultiHostConnectionStrategy.TargetServerType
- All Implemented Interfaces:
MultiHostConnectionStrategy.HostSelector, Serializable, Comparable<MultiHostConnectionStrategy.TargetServerType>, java.lang.constant.Constable
- Enclosing class:
MultiHostConnectionStrategy
public static enum MultiHostConnectionStrategy.TargetServerType
extends Enum<MultiHostConnectionStrategy.TargetServerType>
implements MultiHostConnectionStrategy.HostSelector
Pre-defined enumeration providing
MultiHostConnectionStrategy.HostSelector implementations.- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAny valid server that the driver was able to connect to.ASECONDARYserver.A master server whose initialTRANSACTION_READ_ONLYsetting isOFF.A secondary server whose initialTRANSACTION_READ_ONLYsetting isON. -
Method Summary
Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface MultiHostConnectionStrategy.HostSelector
test
-
Enum Constant Details
-
ANY
Any valid server that the driver was able to connect to. -
PRIMARY
A master server whose initialTRANSACTION_READ_ONLYsetting isOFF. -
SECONDARY
A secondary server whose initialTRANSACTION_READ_ONLYsetting isON. -
PREFER_SECONDARY
-
-
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
-
fromValue
-
getValue
-