public static enum ReconnectFilter.Type extends java.lang.Enum<ReconnectFilter.Type>
ReconnectFilter.ConnectionLostEvent.type()
that describes what reconnect stage we're at.Enum Constant and Description |
---|
LONG_TERM__SHOULD_CONTINUE
A small period of time has passed since we last asked about
LONG_TERM__SHOULD_TRY_AGAIN , so just making sure you want to keep going. |
LONG_TERM__SHOULD_TRY_AGAIN
An attempt to reconnect in the long term failed, should we try again?.
|
SHORT_TERM__SHOULD_CONTINUE
A small period of time has passed since we last asked about
SHORT_TERM__SHOULD_TRY_AGAIN , so just making sure you want to keep going. |
SHORT_TERM__SHOULD_TRY_AGAIN
An attempt to reconnect in the short term failed, should we try again?.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isLongTerm()
Is this either
LONG_TERM__SHOULD_TRY_AGAIN or LONG_TERM__SHOULD_CONTINUE . |
boolean |
isShortTerm()
Is this either
SHORT_TERM__SHOULD_TRY_AGAIN or SHORT_TERM__SHOULD_CONTINUE . |
boolean |
isShouldContinue()
Is this either
SHORT_TERM__SHOULD_CONTINUE or LONG_TERM__SHOULD_CONTINUE . |
boolean |
isShouldTryAgain()
Is this either
SHORT_TERM__SHOULD_CONTINUE or LONG_TERM__SHOULD_TRY_AGAIN . |
static ReconnectFilter.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReconnectFilter.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReconnectFilter.Type SHORT_TERM__SHOULD_CONTINUE
SHORT_TERM__SHOULD_TRY_AGAIN
, so just making sure you want to keep going.public static final ReconnectFilter.Type SHORT_TERM__SHOULD_TRY_AGAIN
public static final ReconnectFilter.Type LONG_TERM__SHOULD_CONTINUE
LONG_TERM__SHOULD_TRY_AGAIN
, so just making sure you want to keep going.public static final ReconnectFilter.Type LONG_TERM__SHOULD_TRY_AGAIN
public static ReconnectFilter.Type[] values()
for (ReconnectFilter.Type c : ReconnectFilter.Type.values()) System.out.println(c);
public static ReconnectFilter.Type 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 boolean isShouldTryAgain()
SHORT_TERM__SHOULD_CONTINUE
or LONG_TERM__SHOULD_TRY_AGAIN
.public boolean isShouldContinue()
SHORT_TERM__SHOULD_CONTINUE
or LONG_TERM__SHOULD_CONTINUE
.public boolean isShortTerm()
SHORT_TERM__SHOULD_TRY_AGAIN
or SHORT_TERM__SHOULD_CONTINUE
.public boolean isLongTerm()
LONG_TERM__SHOULD_TRY_AGAIN
or LONG_TERM__SHOULD_CONTINUE
.