public enum ConsumerSeekDestination extends Enum<ConsumerSeekDestination>
| Enum Constant and Description |
|---|
BEGINNING
Reset offsets for all the given partitions of a given consumer to beginning.
|
END
Reset offsets for all the given partitions of a given consumer to end.
|
NONE
Do nothing.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
seek(org.apache.kafka.clients.consumer.Consumer<?,?> consumer,
Collection<org.apache.kafka.common.TopicPartition> partitions)
Reset offsets for all the given partitions of a given consumer.
|
static ConsumerSeekDestination |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsumerSeekDestination[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsumerSeekDestination NONE
public static final ConsumerSeekDestination BEGINNING
public static final ConsumerSeekDestination END
public static ConsumerSeekDestination[] values()
for (ConsumerSeekDestination c : ConsumerSeekDestination.values()) System.out.println(c);
public static ConsumerSeekDestination 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 abstract void seek(org.apache.kafka.clients.consumer.Consumer<?,?> consumer,
Collection<org.apache.kafka.common.TopicPartition> partitions)
consumer - the consumer to reset offsetpartitions - the partitions to reset offsetsCopyright © 2020 LeanCloud. All rights reserved.