public static enum Options.ReconnectDelayBehavior extends java.lang.Enum<Options.ReconnectDelayBehavior>
ReconnectDelayHandler is invoked during reconnect attempts.| Enum Constant and Description |
|---|
BeforeAllRounds
Invoke reconnect delay behavior before each full round of reconnect attempts.
|
BeforeSubsequentRounds
Invoke the reconnect delay only before subsequent rounds, never before the first round.
|
| Modifier and Type | Method and Description |
|---|---|
static Options.ReconnectDelayBehavior |
get(java.lang.String value)
Resolve a
Options.ReconnectDelayBehavior from a string (case-insensitive name match). |
static Options.ReconnectDelayBehavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Options.ReconnectDelayBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Options.ReconnectDelayBehavior BeforeSubsequentRounds
ReconnectDelayHandler.getWaitTime(long) will only be called with
totalTries greater than or equal to 1.public static final Options.ReconnectDelayBehavior BeforeAllRounds
ReconnectDelayHandler.getWaitTime(long) will be called with
totalTries greater than or equal to 0.public static Options.ReconnectDelayBehavior[] values()
for (Options.ReconnectDelayBehavior c : Options.ReconnectDelayBehavior.values()) System.out.println(c);
public static Options.ReconnectDelayBehavior valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Options.ReconnectDelayBehavior get(java.lang.String value)
Options.ReconnectDelayBehavior from a string (case-insensitive name match).
Returns BeforeSubsequentRounds if the value is null or does not match any constant.value - the string valueBeforeSubsequentRounds as the default