@InterfaceStability.Evolving public enum RemotePartitionDeleteState extends Enum<RemotePartitionDeleteState>
+-------------------------+ |DELETE_PARTITION_MARKED | +-----------+-------------+ | | +-----------v--------------+ |DELETE_PARTITION_STARTED | +-----------+--------------+ | | +-----------v--------------+ |DELETE_PARTITION_FINISHED | +--------------------------+
Enum Constant and Description |
---|
DELETE_PARTITION_FINISHED
This state indicates that the partition is deleted successfully.
|
DELETE_PARTITION_MARKED
This is used when a topic/partition is marked for delete by the controller.
|
DELETE_PARTITION_STARTED
This state indicates that the partition deletion is started but not yet finished.
|
Modifier and Type | Method and Description |
---|---|
static RemotePartitionDeleteState |
forId(byte id) |
byte |
id() |
static boolean |
isValidTransition(RemotePartitionDeleteState srcState,
RemotePartitionDeleteState targetState) |
static RemotePartitionDeleteState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RemotePartitionDeleteState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RemotePartitionDeleteState DELETE_PARTITION_MARKED
public static final RemotePartitionDeleteState DELETE_PARTITION_STARTED
public static final RemotePartitionDeleteState DELETE_PARTITION_FINISHED
public static RemotePartitionDeleteState[] values()
for (RemotePartitionDeleteState c : RemotePartitionDeleteState.values()) System.out.println(c);
public static RemotePartitionDeleteState 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 byte id()
public static RemotePartitionDeleteState forId(byte id)
public static boolean isValidTransition(RemotePartitionDeleteState srcState, RemotePartitionDeleteState targetState)