Module lettuce.core
Package io.lettuce.core.cluster
Enum ClusterTopologyRefreshOptions.RefreshTrigger
java.lang.Object
java.lang.Enum<ClusterTopologyRefreshOptions.RefreshTrigger>
io.lettuce.core.cluster.ClusterTopologyRefreshOptions.RefreshTrigger
- All Implemented Interfaces:
Serializable,Comparable<ClusterTopologyRefreshOptions.RefreshTrigger>,java.lang.constant.Constable
- Enclosing class:
- ClusterTopologyRefreshOptions
public static enum ClusterTopologyRefreshOptions.RefreshTrigger extends Enum<ClusterTopologyRefreshOptions.RefreshTrigger>
Available refresh triggers to signal early topology refreshing.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description ASK_REDIRECTRedis responds with aASKredirection to a command.MOVED_REDIRECTRedis responds with aMOVEDredirection to a command.PERSISTENT_RECONNECTSConnections to a particular host run into persistent reconnects (more than one attempt).UNCOVERED_SLOTAttempts to use a slot that is not covered by a known node.UNKNOWN_NODEConnection attempts to unknown nodes. -
Method Summary
Modifier and Type Method Description static ClusterTopologyRefreshOptions.RefreshTriggervalueOf(String name)Returns the enum constant of this type with the specified name.static ClusterTopologyRefreshOptions.RefreshTrigger[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MOVED_REDIRECT
Redis responds with aMOVEDredirection to a command. -
ASK_REDIRECT
Redis responds with aASKredirection to a command. -
PERSISTENT_RECONNECTS
Connections to a particular host run into persistent reconnects (more than one attempt). -
UNCOVERED_SLOT
Attempts to use a slot that is not covered by a known node.- Since:
- 5.2
-
UNKNOWN_NODE
Connection attempts to unknown nodes.- Since:
- 5.1
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-