org.gcube.data.streams.handlers
Enum FaultResponse
java.lang.Object
java.lang.Enum<FaultResponse>
org.gcube.data.streams.handlers.FaultResponse
- All Implemented Interfaces:
- Serializable, Comparable<FaultResponse>
public enum FaultResponse
- extends Enum<FaultResponse>
Enumarates the possible responses of a FaultHandler to the occurrence of a failure in the iteration of a
Stream.
- Author:
- Fabio Simeoni
|
Method Summary |
static FaultResponse |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FaultResponse[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
STOP
public static final FaultResponse STOP
CONTINUE
public static final FaultResponse CONTINUE
values
public static FaultResponse[] 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 (FaultResponse c : FaultResponse.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FaultResponse 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 name
NullPointerException - if the argument is null
Copyright © 2012. All Rights Reserved.