Enum RecordPublisher.RecordPublisherRunResult
- java.lang.Object
-
- java.lang.Enum<RecordPublisher.RecordPublisherRunResult>
-
- org.apache.flink.streaming.connectors.kinesis.internals.publisher.RecordPublisher.RecordPublisherRunResult
-
- All Implemented Interfaces:
Serializable,Comparable<RecordPublisher.RecordPublisherRunResult>
- Enclosing interface:
- RecordPublisher
public static enum RecordPublisher.RecordPublisherRunResult extends Enum<RecordPublisher.RecordPublisherRunResult>
A status enum to represent whether a shard has been fully consumed.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELLEDThe record publisher has been cancelled.COMPLETEThere are no more records to consume from this shard.INCOMPLETEThere are more records to consume from this shard.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RecordPublisher.RecordPublisherRunResultvalueOf(String name)Returns the enum constant of this type with the specified name.static RecordPublisher.RecordPublisherRunResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPLETE
public static final RecordPublisher.RecordPublisherRunResult COMPLETE
There are no more records to consume from this shard.
-
INCOMPLETE
public static final RecordPublisher.RecordPublisherRunResult INCOMPLETE
There are more records to consume from this shard.
-
CANCELLED
public static final RecordPublisher.RecordPublisherRunResult CANCELLED
The record publisher has been cancelled.
-
-
Method Detail
-
values
public static RecordPublisher.RecordPublisherRunResult[] 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 (RecordPublisher.RecordPublisherRunResult c : RecordPublisher.RecordPublisherRunResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RecordPublisher.RecordPublisherRunResult 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
-
-