public interface StopCondition extends Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
StopCondition.StopResult
Enum for stop condition.
|
| Modifier and Type | Field and Description |
|---|---|
static Comparator<org.apache.pulsar.client.api.MessageId> |
NON_BATCH_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hitMessageId(org.apache.pulsar.client.api.Message<?> message,
org.apache.pulsar.client.api.MessageId id) |
default void |
init(AbstractPartition partition,
org.apache.pulsar.client.api.Consumer<byte[]> consumer) |
static StopCondition |
never() |
StopCondition.StopResult |
shouldStop(AbstractPartition partition,
org.apache.pulsar.client.api.Message<?> message) |
static StopCondition |
stopAfterLast() |
static StopCondition |
stopAfterMessageId(org.apache.pulsar.client.api.MessageId id) |
static StopCondition |
stopAfterMessageIds(Map<AbstractPartition,org.apache.pulsar.client.api.MessageId> ids) |
static StopCondition |
stopAfterTimestamp(long timestamp) |
static StopCondition |
stopAtLast() |
static StopCondition |
stopAtMessageId(org.apache.pulsar.client.api.MessageId id) |
static StopCondition |
stopAtMessageIds(Map<AbstractPartition,org.apache.pulsar.client.api.MessageId> ids) |
static StopCondition |
stopAtTimestamp(long timestamp) |
static final Comparator<org.apache.pulsar.client.api.MessageId> NON_BATCH_COMPARATOR
StopCondition.StopResult shouldStop(AbstractPartition partition, org.apache.pulsar.client.api.Message<?> message)
default void init(AbstractPartition partition, org.apache.pulsar.client.api.Consumer<byte[]> consumer) throws org.apache.pulsar.client.api.PulsarClientException
org.apache.pulsar.client.api.PulsarClientExceptionstatic StopCondition stopAtMessageId(org.apache.pulsar.client.api.MessageId id)
static boolean hitMessageId(org.apache.pulsar.client.api.Message<?> message,
org.apache.pulsar.client.api.MessageId id)
static StopCondition stopAfterMessageId(org.apache.pulsar.client.api.MessageId id)
static StopCondition stopAtMessageIds(Map<AbstractPartition,org.apache.pulsar.client.api.MessageId> ids)
static StopCondition stopAfterMessageIds(Map<AbstractPartition,org.apache.pulsar.client.api.MessageId> ids)
static StopCondition stopAtTimestamp(long timestamp)
static StopCondition stopAfterTimestamp(long timestamp)
static StopCondition stopAtLast()
static StopCondition stopAfterLast()
static StopCondition never()
Copyright © 2019–2021 The Apache Software Foundation. All rights reserved.