public class PersistentStickyKeyDispatcherMultipleConsumers extends PersistentDispatcherMultipleConsumers
PersistentDispatcherMultipleConsumers.ReadTypeBLOCKED_DISPATCHER_ON_UNACKMSG_UPDATER, cursor, dispatchRateLimiter, havePendingRead, havePendingReplayRead, lastIndividualDeletedRangeFromCursorRecovery, messagesToRedeliver, name, readBatchSize, readFailureBackoff, redeliveryTracker, serviceConfig, shouldRewindBeforeReadingOrReplaying, topic, TOTAL_AVAILABLE_PERMITS_UPDATER, totalAvailablePermits, totalUnackedMessagesconsumerList, consumerSet, currentConsumerRoundRobinIndex, FALSE, IS_CLOSED_UPDATER, TRUEsubscription| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(Consumer consumer) |
protected Set<? extends Position> |
asyncReplayEntries(Set<? extends Position> positions) |
Map<String,List<String>> |
getConsumerKeyHashRanges() |
protected Set<PositionImpl> |
getMessagesToReplayNow(int maxMessagesToRead) |
LinkedHashMap<Consumer,PositionImpl> |
getRecentlyJoinedConsumers() |
org.apache.pulsar.common.api.proto.CommandSubscribe.SubType |
getType() |
void |
markDeletePositionMoveForward() |
void |
removeConsumer(Consumer consumer) |
protected void |
sendMessagesToConsumers(PersistentDispatcherMultipleConsumers.ReadType readType,
List<Entry> entries) |
addMessageToReplay, addUnAckedMessages, asyncReplayEntriesInOrder, blockDispatcherOnUnackedMsgs, calculateNumOfMessageToRead, cancelPendingRead, canUnsubscribe, checkAndUnblockIfStuck, clearDelayedMessages, close, consumerFlow, cursorIsReset, disconnectActiveConsumers, disconnectAllConsumers, getConsumers, getFirstAvailableConsumerPermits, getName, getNumberOfDelayedMessages, getRateLimiter, getRedeliveryTracker, getTopic, getTotalUnackedMessages, initializeDispatchRateLimiterIfNeeded, isAtleastOneConsumerAvailable, isBlockedDispatcherOnUnackedMsgs, isConsumerAvailable, isConsumerConnected, isConsumersExceededOnSubscription, readEntriesComplete, readEntriesFailed, readMoreEntries, redeliverUnacknowledgedMessages, redeliverUnacknowledgedMessages, reset, resetCloseFuture, trackDelayedDelivery, unBlockDispatcherOnUnackedMsgs, updateRateLimitergetNextConsumer, getRandomConsumer, isClosedfilterEntriesForConsumer, filterEntriesForConsumer, isConsumersExceededOnSubscription, peekStickyKey, updateEntryWrapperWithMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisconnectAllConsumers, isClosedpublic void addConsumer(Consumer consumer) throws BrokerServiceException
addConsumer in interface DispatcheraddConsumer in class PersistentDispatcherMultipleConsumersBrokerServiceExceptionpublic void removeConsumer(Consumer consumer) throws BrokerServiceException
removeConsumer in interface DispatcherremoveConsumer in class PersistentDispatcherMultipleConsumersBrokerServiceExceptionprotected void sendMessagesToConsumers(PersistentDispatcherMultipleConsumers.ReadType readType, List<Entry> entries)
sendMessagesToConsumers in class PersistentDispatcherMultipleConsumerspublic void markDeletePositionMoveForward()
protected Set<PositionImpl> getMessagesToReplayNow(int maxMessagesToRead)
getMessagesToReplayNow in class PersistentDispatcherMultipleConsumerspublic org.apache.pulsar.common.api.proto.CommandSubscribe.SubType getType()
getType in interface DispatchergetType in class PersistentDispatcherMultipleConsumersprotected Set<? extends Position> asyncReplayEntries(Set<? extends Position> positions)
asyncReplayEntries in class PersistentDispatcherMultipleConsumerspublic LinkedHashMap<Consumer,PositionImpl> getRecentlyJoinedConsumers()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.