Enum BaseRedisProperties.RedisReadFromTypes
- java.lang.Object
-
- java.lang.Enum<BaseRedisProperties.RedisReadFromTypes>
-
- org.apereo.cas.configuration.model.support.redis.BaseRedisProperties.RedisReadFromTypes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BaseRedisProperties.RedisReadFromTypes>
- Enclosing class:
- BaseRedisProperties
public static enum BaseRedisProperties.RedisReadFromTypes extends java.lang.Enum<BaseRedisProperties.RedisReadFromTypes>
The Lettuce libraryReadFrom
types that determine how Lettuce routes read operations to replica nodes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
Read from any node of the cluster.ANYREPLICA
Read from any replica node of the cluster.MASTER
Deprecated.UseUPSTREAM
instead.MASTERPREFERRED
Deprecated.UseUPSTREAMPREFERRED
instead.NEAREST
Read from the nearest node.REPLICA
Read from replica nodes.REPLICAPREFERRED
Read from the replica nodes, but if none is unavailable, read from the upstream node.SLAVE
Deprecated.UseREPLICA
instead.SLAVEPREFERRED
Deprecated.UseREPLICAPREFERRED
instead.UPSTREAM
Read from the current upstream node.UPSTREAMPREFERRED
Read from the upstream node, but if it is unavailable, read from replica nodes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BaseRedisProperties.RedisReadFromTypes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BaseRedisProperties.RedisReadFromTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPSTREAM
public static final BaseRedisProperties.RedisReadFromTypes UPSTREAM
Read from the current upstream node.
-
UPSTREAMPREFERRED
public static final BaseRedisProperties.RedisReadFromTypes UPSTREAMPREFERRED
Read from the upstream node, but if it is unavailable, read from replica nodes.
-
MASTER
@Deprecated public static final BaseRedisProperties.RedisReadFromTypes MASTER
Deprecated.UseUPSTREAM
instead.Read from the current upstream node.
-
MASTERPREFERRED
@Deprecated public static final BaseRedisProperties.RedisReadFromTypes MASTERPREFERRED
Deprecated.UseUPSTREAMPREFERRED
instead.Read from the upstream node, but if it is unavailable, read from replica nodes.
-
SLAVE
@Deprecated public static final BaseRedisProperties.RedisReadFromTypes SLAVE
Deprecated.UseREPLICA
instead.Read from replica nodes.
-
SLAVEPREFERRED
@Deprecated public static final BaseRedisProperties.RedisReadFromTypes SLAVEPREFERRED
Deprecated.UseREPLICAPREFERRED
instead.Read from the replica nodes, but if none is unavailable, read from the upstream node.
-
REPLICA
public static final BaseRedisProperties.RedisReadFromTypes REPLICA
Read from replica nodes.
-
REPLICAPREFERRED
public static final BaseRedisProperties.RedisReadFromTypes REPLICAPREFERRED
Read from the replica nodes, but if none is unavailable, read from the upstream node.
-
ANY
public static final BaseRedisProperties.RedisReadFromTypes ANY
Read from any node of the cluster.
-
ANYREPLICA
public static final BaseRedisProperties.RedisReadFromTypes ANYREPLICA
Read from any replica node of the cluster.
-
NEAREST
public static final BaseRedisProperties.RedisReadFromTypes NEAREST
Read from the nearest node.
-
-
Method Detail
-
values
public static BaseRedisProperties.RedisReadFromTypes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BaseRedisProperties.RedisReadFromTypes c : BaseRedisProperties.RedisReadFromTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseRedisProperties.RedisReadFromTypes valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-