Enum Journal.PreallocationStrategy
- java.lang.Object
-
- java.lang.Enum<Journal.PreallocationStrategy>
-
- org.apache.activemq.store.kahadb.disk.journal.Journal.PreallocationStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<Journal.PreallocationStrategy>
- Enclosing class:
- Journal
public static enum Journal.PreallocationStrategy extends Enum<Journal.PreallocationStrategy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHUNKED_ZEROS
OS_KERNEL_COPY
SPARSE_FILE
ZEROS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Journal.PreallocationStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static Journal.PreallocationStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPARSE_FILE
public static final Journal.PreallocationStrategy SPARSE_FILE
-
OS_KERNEL_COPY
public static final Journal.PreallocationStrategy OS_KERNEL_COPY
-
ZEROS
public static final Journal.PreallocationStrategy ZEROS
-
CHUNKED_ZEROS
public static final Journal.PreallocationStrategy CHUNKED_ZEROS
-
-
Method Detail
-
values
public static Journal.PreallocationStrategy[] 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 (Journal.PreallocationStrategy c : Journal.PreallocationStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Journal.PreallocationStrategy 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
-
-