- java.lang.Object
-
- java.lang.Enum<SourceResponse.Status>
-
- io.annot8.core.components.responses.SourceResponse.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<SourceResponse.Status>
- Enclosing interface:
- SourceResponse
public static enum SourceResponse.Status extends Enum<SourceResponse.Status>
Response status returned by the source
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DONE
Indicates that the source has been exhausted, and will never return any new items.EMPTY
Indicates that the source is temporarily empty, but that it may have new items in the future.OK
Indicates that the source found new items, and that the pipeline may ask the source for new items again as soon as it is ready.SOURCE_ERROR
Indicates that an error occurred with the source.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SourceResponse.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static SourceResponse.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final SourceResponse.Status OK
Indicates that the source found new items, and that the pipeline may ask the source for new items again as soon as it is ready.
-
SOURCE_ERROR
public static final SourceResponse.Status SOURCE_ERROR
Indicates that an error occurred with the source. It is up to the pipeline to decide whether to try again or not.
-
DONE
public static final SourceResponse.Status DONE
Indicates that the source has been exhausted, and will never return any new items. The pipeline should stop asking for new items and terminate.
-
EMPTY
public static final SourceResponse.Status EMPTY
Indicates that the source is temporarily empty, but that it may have new items in the future.
-
-
Method Detail
-
values
public static SourceResponse.Status[] 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 (SourceResponse.Status c : SourceResponse.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SourceResponse.Status 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
-
-