| Enum Constant and Description |
|---|
ANNOUNCED |
ANNOUNCING_1 |
ANNOUNCING_2 |
CANCELED |
CANCELING_1 |
CANCELING_2 |
CANCELING_3 |
CLOSED |
CLOSING |
PROBING_1 |
PROBING_2 |
PROBING_3 |
| Modifier and Type | Method and Description |
|---|---|
DNSState |
advance()
Returns the next advanced state.
In general, this advances one step in the following sequence: PROBING_1, PROBING_2, PROBING_3, ANNOUNCING_1, ANNOUNCING_2, ANNOUNCED. or CANCELING_1, CANCELING_2, CANCELING_3, CANCELED Does not advance for ANNOUNCED and CANCELED state. |
boolean |
isAnnounced()
Returns true, if this is an announced state.
|
boolean |
isAnnouncing()
Returns true, if this is an announcing state.
|
boolean |
isCanceled()
Returns true, if this is a canceled state.
|
boolean |
isCanceling()
Returns true, if this is a canceling state.
|
boolean |
isClosed()
Returns true, if this is a closing state.
|
boolean |
isClosing()
Returns true, if this is a closing state.
|
boolean |
isProbing()
Returns true, if this is a probing state.
|
DNSState |
revert()
Returns to the next reverted state.
|
java.lang.String |
toString() |
static DNSState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DNSState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DNSState PROBING_1
public static final DNSState PROBING_2
public static final DNSState PROBING_3
public static final DNSState ANNOUNCING_1
public static final DNSState ANNOUNCING_2
public static final DNSState ANNOUNCED
public static final DNSState CANCELING_1
public static final DNSState CANCELING_2
public static final DNSState CANCELING_3
public static final DNSState CANCELED
public static final DNSState CLOSING
public static final DNSState CLOSED
public static DNSState[] values()
for (DNSState c : DNSState.values()) System.out.println(c);
public static DNSState 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 final java.lang.String toString()
toString in class java.lang.Enum<DNSState>public final DNSState advance()
public final DNSState revert()
public final boolean isProbing()
true if probing state, false otherwisepublic final boolean isAnnouncing()
true if announcing state, false otherwisepublic final boolean isAnnounced()
true if announced state, false otherwisepublic final boolean isCanceling()
true if canceling state, false otherwisepublic final boolean isCanceled()
true if canceled state, false otherwisepublic final boolean isClosing()
true if closing state, false otherwisepublic final boolean isClosed()
true if closed state, false otherwise