@Internal public enum AssignmentStatus extends Enum<AssignmentStatus>
| Enum Constant and Description |
|---|
ASSIGNED
Partitions that have been assigned to readers.
|
UNASSIGNED_INITIAL
The partitions that have been discovered during initialization but not assigned to readers
yet.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getStatusCode() |
static AssignmentStatus |
ofStatusCode(int statusCode) |
static AssignmentStatus |
valueOf(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.
|
public static final AssignmentStatus ASSIGNED
public static final AssignmentStatus UNASSIGNED_INITIAL
public static AssignmentStatus[] values()
for (AssignmentStatus c : AssignmentStatus.values()) System.out.println(c);
public static AssignmentStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getStatusCode()
public static AssignmentStatus ofStatusCode(int statusCode)
Copyright © 2022–2024 The Apache Software Foundation. All rights reserved.