public static enum ReconnectionManager.ReconnectionPolicy extends Enum<ReconnectionManager.ReconnectionPolicy>
RANDOM_INCREASING_DELAY
is the default policy used by smack and FIXED_DELAY
implies
a fixed amount of time between reconnection attemptsEnum Constant and Description |
---|
FIXED_DELAY
Policy using fixed amount of time between reconnection attempts
|
RANDOM_INCREASING_DELAY
Default policy classically used by smack, having an increasing delay related to the
overall number of attempts
|
Modifier and Type | Method and Description |
---|---|
static ReconnectionManager.ReconnectionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReconnectionManager.ReconnectionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReconnectionManager.ReconnectionPolicy RANDOM_INCREASING_DELAY
public static final ReconnectionManager.ReconnectionPolicy FIXED_DELAY
public static ReconnectionManager.ReconnectionPolicy[] values()
for (ReconnectionManager.ReconnectionPolicy c : ReconnectionManager.ReconnectionPolicy.values()) System.out.println(c);
public static ReconnectionManager.ReconnectionPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null