Enum HAPolicyConfiguration.TYPE
- java.lang.Object
-
- java.lang.Enum<HAPolicyConfiguration.TYPE>
-
- org.apache.activemq.artemis.core.config.HAPolicyConfiguration.TYPE
-
- All Implemented Interfaces:
Serializable,Comparable<HAPolicyConfiguration.TYPE>
- Enclosing interface:
- HAPolicyConfiguration
public static enum HAPolicyConfiguration.TYPE extends Enum<HAPolicyConfiguration.TYPE>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKUPCOLOCATEDLIVE_ONLYPRIMARYREPLICAREPLICATEDSHARED_STORE_MASTERSHARED_STORE_SLAVE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()static HAPolicyConfiguration.TYPEvalueOf(String name)Returns the enum constant of this type with the specified name.static HAPolicyConfiguration.TYPE[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LIVE_ONLY
public static final HAPolicyConfiguration.TYPE LIVE_ONLY
-
REPLICATED
public static final HAPolicyConfiguration.TYPE REPLICATED
-
REPLICA
public static final HAPolicyConfiguration.TYPE REPLICA
-
SHARED_STORE_MASTER
public static final HAPolicyConfiguration.TYPE SHARED_STORE_MASTER
-
SHARED_STORE_SLAVE
public static final HAPolicyConfiguration.TYPE SHARED_STORE_SLAVE
-
COLOCATED
public static final HAPolicyConfiguration.TYPE COLOCATED
-
PRIMARY
public static final HAPolicyConfiguration.TYPE PRIMARY
-
BACKUP
public static final HAPolicyConfiguration.TYPE BACKUP
-
-
Method Detail
-
values
public static HAPolicyConfiguration.TYPE[] 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 (HAPolicyConfiguration.TYPE c : HAPolicyConfiguration.TYPE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HAPolicyConfiguration.TYPE 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
-
getName
public String getName()
-
-