Enum ReplicationLiveIsStoppingMessage.LiveStopping
- java.lang.Object
-
- java.lang.Enum<ReplicationLiveIsStoppingMessage.LiveStopping>
-
- org.apache.activemq.artemis.core.protocol.core.impl.wireformat.ReplicationLiveIsStoppingMessage.LiveStopping
-
- All Implemented Interfaces:
Serializable,Comparable<ReplicationLiveIsStoppingMessage.LiveStopping>
- Enclosing class:
- ReplicationLiveIsStoppingMessage
public static enum ReplicationLiveIsStoppingMessage.LiveStopping extends Enum<ReplicationLiveIsStoppingMessage.LiveStopping>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAIL_OVEROrders the backup to fail-over immediately.STOP_CALLEDNotifies the backup that its live is going to stop.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReplicationLiveIsStoppingMessage.LiveStoppingvalueOf(String name)Returns the enum constant of this type with the specified name.static ReplicationLiveIsStoppingMessage.LiveStopping[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STOP_CALLED
public static final ReplicationLiveIsStoppingMessage.LiveStopping STOP_CALLED
Notifies the backup that its live is going to stop. The backup will then NOT fail-over if it gets signals from the cluster that its live sent a disconnect.
-
FAIL_OVER
public static final ReplicationLiveIsStoppingMessage.LiveStopping FAIL_OVER
Orders the backup to fail-over immediately. Meant as a follow-up message toSTOP_CALLED.
-
-
Method Detail
-
values
public static ReplicationLiveIsStoppingMessage.LiveStopping[] 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 (ReplicationLiveIsStoppingMessage.LiveStopping c : ReplicationLiveIsStoppingMessage.LiveStopping.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReplicationLiveIsStoppingMessage.LiveStopping 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
-
-