Enum AssignmentStatus
- java.lang.Object
-
- java.lang.Enum<AssignmentStatus>
-
- org.apache.flink.connector.kafka.source.enumerator.AssignmentStatus
-
- All Implemented Interfaces:
Serializable,Comparable<AssignmentStatus>
@Internal public enum AssignmentStatus extends Enum<AssignmentStatus>
status of partition assignment.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSIGNEDPartitions that have been assigned to readers.UNASSIGNED_INITIALThe partitions that have been discovered during initialization but not assigned to readers yet.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStatusCode()static AssignmentStatusofStatusCode(int statusCode)static AssignmentStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static AssignmentStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASSIGNED
public static final AssignmentStatus ASSIGNED
Partitions that have been assigned to readers.
-
UNASSIGNED_INITIAL
public static final AssignmentStatus UNASSIGNED_INITIAL
The partitions that have been discovered during initialization but not assigned to readers yet.
-
-
Method Detail
-
values
public static AssignmentStatus[] 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 (AssignmentStatus c : AssignmentStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AssignmentStatus 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
-
getStatusCode
public int getStatusCode()
-
ofStatusCode
public static AssignmentStatus ofStatusCode(int statusCode)
-
-