Enum SegmentStatus
- java.lang.Object
-
- java.lang.Enum<SegmentStatus>
-
- com.linkedin.venice.kafka.validation.SegmentStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SegmentStatus>
public enum SegmentStatus extends java.lang.Enum<SegmentStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description END_OF_FINAL_SEGMENTReceivedControlMessageType.END_OF_SEGMENTwith finalSegment = true.END_OF_INTERMEDIATE_SEGMENTReceivedControlMessageType.END_OF_SEGMENTwith finalSegment = false.IN_PROGRESSReceivedControlMessageType.START_OF_SEGMENTbut notControlMessageType.END_OF_SEGMENTNOT_STARTEDDid not receiveControlMessageType.START_OF_SEGMENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()booleanisTerminal()static SegmentStatusvalueOf(int value)Returns the enum constant of this type with the specified name.static SegmentStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SegmentStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_STARTED
public static final SegmentStatus NOT_STARTED
Did not receiveControlMessageType.START_OF_SEGMENT
-
IN_PROGRESS
public static final SegmentStatus IN_PROGRESS
ReceivedControlMessageType.START_OF_SEGMENTbut notControlMessageType.END_OF_SEGMENT
-
END_OF_INTERMEDIATE_SEGMENT
public static final SegmentStatus END_OF_INTERMEDIATE_SEGMENT
ReceivedControlMessageType.END_OF_SEGMENTwith finalSegment = false. More segments should come from the same producer.
-
END_OF_FINAL_SEGMENT
public static final SegmentStatus END_OF_FINAL_SEGMENT
ReceivedControlMessageType.END_OF_SEGMENTwith finalSegment = true.
-
-
Method Detail
-
values
public static SegmentStatus[] 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 (SegmentStatus c : SegmentStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SegmentStatus 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
-
getValue
public int getValue()
-
isTerminal
public boolean isTerminal()
-
valueOf
public static SegmentStatus valueOf(int value)
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:
value- 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
-
-