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_SEGMENT
ReceivedControlMessageType.END_OF_SEGMENT
with finalSegment = true.END_OF_INTERMEDIATE_SEGMENT
ReceivedControlMessageType.END_OF_SEGMENT
with finalSegment = false.IN_PROGRESS
ReceivedControlMessageType.START_OF_SEGMENT
but notControlMessageType.END_OF_SEGMENT
NOT_STARTED
Did not receiveControlMessageType.START_OF_SEGMENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
boolean
isTerminal()
static SegmentStatus
valueOf(int value)
Returns the enum constant of this type with the specified name.static SegmentStatus
valueOf(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_SEGMENT
but notControlMessageType.END_OF_SEGMENT
-
END_OF_INTERMEDIATE_SEGMENT
public static final SegmentStatus END_OF_INTERMEDIATE_SEGMENT
ReceivedControlMessageType.END_OF_SEGMENT
with 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_SEGMENT
with 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
-
-