public enum UnsubscribedStatus extends Enum<UnsubscribedStatus>
LcKafkaConsumer when it unsubscribed to all the topics that have subscribed to.| Enum Constant and Description |
|---|
CLOSED
Indicate that the unsubscription is due to
LcKafkaConsumer.close() was called. |
ERROR
Indicate that the unsubscription is due to an error occurred, maybe an exception was thrown from
ConsumerRecordHandler.handleRecord(ConsumerRecord), or some unrecoverable error happened
within KafkaConsumer. |
| Modifier and Type | Method and Description |
|---|---|
static UnsubscribedStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnsubscribedStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnsubscribedStatus CLOSED
LcKafkaConsumer.close() was called.
Usually, this is an expected status.public static final UnsubscribedStatus ERROR
ConsumerRecordHandler.handleRecord(ConsumerRecord), or some unrecoverable error happened
within KafkaConsumer. You can check the specific exception
in log.public static UnsubscribedStatus[] values()
for (UnsubscribedStatus c : UnsubscribedStatus.values()) System.out.println(c);
public static UnsubscribedStatus 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 nullCopyright © 2020 LeanCloud. All rights reserved.