Enum CommitLogObservers.TerminationStrategy
- java.lang.Object
-
- java.lang.Enum<CommitLogObservers.TerminationStrategy>
-
- cz.o2.proxima.direct.core.commitlog.CommitLogObservers.TerminationStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CommitLogObservers.TerminationStrategy>
- Enclosing class:
- CommitLogObservers
public static enum CommitLogObservers.TerminationStrategy extends java.lang.Enum<CommitLogObservers.TerminationStrategy>
A strategy to use when maximal error count is reached.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXIT
Immediately callSystem.exit(int)
RETHROW
Exception is rethrown an handled by exception handler.STOP_PROCESSING
Halt processing.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommitLogObservers.TerminationStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CommitLogObservers.TerminationStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STOP_PROCESSING
public static final CommitLogObservers.TerminationStrategy STOP_PROCESSING
Halt processing. The application's responsibility is to recover from the situation.
-
RETHROW
public static final CommitLogObservers.TerminationStrategy RETHROW
Exception is rethrown an handled by exception handler.
-
EXIT
public static final CommitLogObservers.TerminationStrategy EXIT
Immediately callSystem.exit(int)
-
-
Method Detail
-
values
public static CommitLogObservers.TerminationStrategy[] 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 (CommitLogObservers.TerminationStrategy c : CommitLogObservers.TerminationStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommitLogObservers.TerminationStrategy 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
-
-