Enum FactoryStrategy
- java.lang.Object
-
- java.lang.Enum<FactoryStrategy>
-
- org.opennms.netmgt.provision.persist.FactoryStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FactoryStrategy>
public enum FactoryStrategy extends java.lang.Enum<FactoryStrategy>
The enumeration for factory strategy.- Author:
- Alejandro Galue
-
-
Enum Constant Summary
Enum Constants Enum Constant Description caching
fastCaching
fastFile
fastFused
fastQueueing
file
fused
queueing
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FactoryStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FactoryStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
fastQueueing
public static final FactoryStrategy fastQueueing
-
queueing
public static final FactoryStrategy queueing
-
fastCaching
public static final FactoryStrategy fastCaching
-
caching
public static final FactoryStrategy caching
-
fastFused
public static final FactoryStrategy fastFused
-
fused
public static final FactoryStrategy fused
-
fastFile
public static final FactoryStrategy fastFile
-
file
public static final FactoryStrategy file
-
-
Method Detail
-
values
public static FactoryStrategy[] 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 (FactoryStrategy c : FactoryStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FactoryStrategy valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-