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>
- Enclosing class:
- ClusterTopologyRefreshOptions
public static enum ClusterTopologyRefreshOptions.RefreshTrigger extends Enum<ClusterTopologyRefreshOptions.RefreshTrigger>
Available refresh triggers to signal early topology refreshing.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASK_REDIRECT
Redis responds with aASK
redirection to a command.MOVED_REDIRECT
Redis responds with aMOVED
redirection 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.UNKNOWN_NODE
Connection attempts to unknown nodes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClusterTopologyRefreshOptions.RefreshTrigger
valueOf(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 Detail
-
MOVED_REDIRECT
public static final ClusterTopologyRefreshOptions.RefreshTrigger MOVED_REDIRECT
Redis responds with aMOVED
redirection to a command.
-
ASK_REDIRECT
public static final ClusterTopologyRefreshOptions.RefreshTrigger ASK_REDIRECT
Redis responds with aASK
redirection to a command.
-
PERSISTENT_RECONNECTS
public static final ClusterTopologyRefreshOptions.RefreshTrigger PERSISTENT_RECONNECTS
Connections to a particular host run into persistent reconnects (more than one attempt).
-
UNCOVERED_SLOT
public static final ClusterTopologyRefreshOptions.RefreshTrigger UNCOVERED_SLOT
Attempts to use a slot that is not covered by a known node.- Since:
- 5.2
-
UNKNOWN_NODE
public static final ClusterTopologyRefreshOptions.RefreshTrigger UNKNOWN_NODE
Connection attempts to unknown nodes.- Since:
- 5.1
-
-
Method Detail
-
values
public static ClusterTopologyRefreshOptions.RefreshTrigger[] 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 (ClusterTopologyRefreshOptions.RefreshTrigger c : ClusterTopologyRefreshOptions.RefreshTrigger.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClusterTopologyRefreshOptions.RefreshTrigger valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-