Enum StateTransferStatus
- java.lang.Object
-
- java.lang.Enum<StateTransferStatus>
-
- org.infinispan.xsite.statetransfer.StateTransferStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<StateTransferStatus>
public enum StateTransferStatus extends Enum<StateTransferStatus>
Cross-site state transfer status.- Since:
- 12
- Author:
- Pedro Ruivo
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IDLE
SEND_CANCELED
SEND_FAILED
SEND_OK
SENDING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StateTransferStatus
merge(StateTransferStatus one, StateTransferStatus two)
static String
toText(StateTransferStatus status)
static StateTransferStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static StateTransferStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE
public static final StateTransferStatus IDLE
-
SENDING
public static final StateTransferStatus SENDING
-
SEND_OK
public static final StateTransferStatus SEND_OK
-
SEND_FAILED
public static final StateTransferStatus SEND_FAILED
-
SEND_CANCELED
public static final StateTransferStatus SEND_CANCELED
-
-
Method Detail
-
values
public static StateTransferStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StateTransferStatus c : StateTransferStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StateTransferStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
merge
public static StateTransferStatus merge(StateTransferStatus one, StateTransferStatus two)
-
toText
public static String toText(StateTransferStatus status)
-
-