public class PersistentStreamingDispatcherSingleActiveConsumer extends PersistentDispatcherSingleActiveConsumer implements StreamingDispatcher
PersistentDispatcherSingleActiveConsumer implemented StreamingDispatcher.
It'll use StreamingEntryReader to read new entries instead read as micro batch from managed ledger.havePendingRead, name, readBatchSize, readFailureBackoff, topicACTIVE_CONSUMER_UPDATER, closeFuture, consumers, cursor, FALSE, IS_CLOSED_UPDATER, isFirstRead, isKeyHashRangeFiltered, partitionIndex, stickyKeyConsumerSelector, subscriptionType, topicName, TRUEserviceConfig, subscription| Constructor and Description |
|---|
PersistentStreamingDispatcherSingleActiveConsumer(ManagedCursor cursor,
org.apache.pulsar.common.api.proto.CommandSubscribe.SubType subscriptionType,
int partitionIndex,
PersistentTopic topic,
Subscription subscription) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelPendingRead() |
void |
canReadMoreEntries(boolean withBackoff)
Notify dispatcher can issue next read request.
|
String |
getName() |
void |
internalReadEntryComplete(Entry entry,
PendingReadEntryRequest ctx) |
void |
notifyConsumersEndOfTopic()
Notify dispatcher to inform consumers reached end of topic.
|
void |
readEntryComplete(Entry entry,
PendingReadEntryRequest ctx)
Notify dispatcher issued read entry request has complete.
|
protected void |
readMoreEntries(Consumer consumer) |
addUnAckedMessages, calculateToRead, checkAndUnblockIfStuck, close, consumerFlow, dispatchEntriesToConsumer, getRateLimiter, getRedeliveryTracker, initializeDispatchRateLimiterIfNeeded, internalReadEntriesComplete, isConsumersExceededOnSubscription, readEntriesComplete, readEntriesFailed, redeliverUnacknowledgedMessages, redeliverUnacknowledgedMessages, scheduleReadOnActiveConsumer, updateRateLimiteraddConsumer, canUnsubscribe, disconnectActiveConsumers, disconnectAllConsumers, getActiveConsumer, getConsumers, getType, isClosed, isConsumerConnected, notifyActiveConsumerChanged, pickAndScheduleActiveConsumer, removeConsumer, reset, resetCloseFuturecomputeReadLimits, filterEntriesForConsumer, filterEntriesForConsumer, isConsumersExceededOnSubscription, peekStickyKey, updateEntryWrapperWithMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConsumer, addUnAckedMessages, canUnsubscribe, checkAndUnblockIfStuck, clearDelayedMessages, close, consumerFlow, cursorIsReset, disconnectActiveConsumers, disconnectAllConsumers, disconnectAllConsumers, getConsumers, getNumberOfDelayedMessages, getRateLimiter, getRedeliveryTracker, getType, initializeDispatchRateLimiterIfNeeded, isClosed, isConsumerConnected, markDeletePositionMoveForward, redeliverUnacknowledgedMessages, redeliverUnacknowledgedMessages, removeConsumer, reset, resetCloseFuture, trackDelayedDelivery, updateRateLimiterpublic PersistentStreamingDispatcherSingleActiveConsumer(ManagedCursor cursor, org.apache.pulsar.common.api.proto.CommandSubscribe.SubType subscriptionType, int partitionIndex, PersistentTopic topic, Subscription subscription)
public void canReadMoreEntries(boolean withBackoff)
canReadMoreEntries in interface StreamingDispatcherprotected void cancelPendingRead()
cancelPendingRead in class PersistentDispatcherSingleActiveConsumerpublic void notifyConsumersEndOfTopic()
notifyConsumersEndOfTopic in interface StreamingDispatcherpublic String getName()
getName in interface StreamingDispatcherpublic void readEntryComplete(Entry entry, PendingReadEntryRequest ctx)
readEntryComplete in interface StreamingDispatcherentry - Entry read.ctx - Context passed in when issuing read entries request.public void internalReadEntryComplete(Entry entry, PendingReadEntryRequest ctx)
protected void readMoreEntries(Consumer consumer)
readMoreEntries in class PersistentDispatcherSingleActiveConsumerCopyright © 2017–2022 Apache Software Foundation. All rights reserved.