Enum Class BaseRedisProperties.RedisReadFromTypes
java.lang.Object
java.lang.Enum<BaseRedisProperties.RedisReadFromTypes>
org.apereo.cas.configuration.model.support.redis.BaseRedisProperties.RedisReadFromTypes
- All Implemented Interfaces:
Serializable
,Comparable<BaseRedisProperties.RedisReadFromTypes>
,Constable
- Enclosing class:
- BaseRedisProperties
public static enum BaseRedisProperties.RedisReadFromTypes
extends Enum<BaseRedisProperties.RedisReadFromTypes>
The Lettuce library
ReadFrom
types that determine how Lettuce routes read operations to replica nodes.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRead from any node of the cluster.Read from any replica node of the cluster.Deprecated.Deprecated.UseUPSTREAMPREFERRED
instead.Read from the nearest node.Read from replica nodes.Read from the replica nodes, but if none is unavailable, read from the upstream node.Deprecated.UseREPLICA
instead.Deprecated.UseREPLICAPREFERRED
instead.Read from the current upstream node.Read from the upstream node, but if it is unavailable, read from replica nodes. -
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
-
UPSTREAM
Read from the current upstream node. -
UPSTREAMPREFERRED
Read from the upstream node, but if it is unavailable, read from replica nodes. -
MASTER
Deprecated.UseUPSTREAM
instead.Read from the current upstream node. -
MASTERPREFERRED
Deprecated.UseUPSTREAMPREFERRED
instead.Read from the upstream node, but if it is unavailable, read from replica nodes. -
SLAVE
Deprecated.UseREPLICA
instead.Read from replica nodes. -
SLAVEPREFERRED
Deprecated.UseREPLICAPREFERRED
instead.Read from the replica nodes, but if none is unavailable, read from the upstream node. -
REPLICA
Read from replica nodes. -
REPLICAPREFERRED
Read from the replica nodes, but if none is unavailable, read from the upstream node. -
ANY
Read from any node of the cluster. -
ANYREPLICA
Read from any replica node of the cluster. -
NEAREST
Read from the nearest node.
-
-
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
-
UPSTREAM
instead.