public enum CandidatePairState extends Enum<CandidatePairState>
Enum Constant and Description |
---|
FAILED
Indicates that the candidate pair is in a "Failed" state which means that
a check for this pair was already done and failed, either never producing
any response or producing an unrecoverable failure response.
|
FROZEN
Indicates that the candidate pair is in a "Frozen" state which means that
a check for this pair hasn't been performed, and it can't yet be
performed until some other check succeeds, allowing this pair to unfreeze
and move into the Waiting state.
|
IN_PROGRESS
Indicates that the candidate pair is in a "In-Progress" state which
means that a check has been sent for this pair, but the transaction is
in progress.
|
SUCCEEDED
Indicates that the candidate pair is in a "Succeeded" state which means
that a check for this pair was already done and produced a successful
result.
|
WAITING
Indicates that the candidate pair is in a Waiting state which means that
a check has not been performed for this pair, and can be performed as
soon as it is the highest priority Waiting pair on the check list.
|
Modifier and Type | Field and Description |
---|---|
private String |
stateName
The name of this CandidatePairState instance.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Returns the name of this CandidatePairStae (e.g.
|
static CandidatePairState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CandidatePairState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CandidatePairState WAITING
public static final CandidatePairState IN_PROGRESS
public static final CandidatePairState SUCCEEDED
public static final CandidatePairState FAILED
public static final CandidatePairState FROZEN
private final String stateName
public static CandidatePairState[] values()
for (CandidatePairState c : CandidatePairState.values()) System.out.println(c);
public static CandidatePairState 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 nullpublic String toString()
toString
in class Enum<CandidatePairState>
Copyright © 2018. All rights reserved.