public class PersistentStickyKeyDispatcherMultipleConsumers extends PersistentDispatcherMultipleConsumers
PersistentDispatcherMultipleConsumers.ReadTypeBLOCKED_DISPATCHER_ON_UNACKMSG_UPDATER, cursor, dispatchRateLimiter, havePendingRead, havePendingReplayRead, lastIndividualDeletedRangeFromCursorRecovery, minReplayedPosition, name, readBatchSize, readFailureBackoff, redeliveryMessages, redeliveryTracker, shouldRewindBeforeReadingOrReplaying, topic, TOTAL_AVAILABLE_PERMITS_UPDATER, totalAvailablePermits, totalUnackedMessagesconsumerList, consumerSet, currentConsumerRoundRobinIndex, FALSE, IS_CLOSED_UPDATER, TRUEserviceConfig, subscription| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(Consumer consumer) |
protected Set<? extends Position> |
asyncReplayEntries(Set<? extends Position> positions) |
Map<Consumer,List<org.apache.pulsar.client.api.Range>> |
getConsumerKeyHashRanges() |
org.apache.pulsar.common.api.proto.KeySharedMode |
getKeySharedMode() |
protected Set<PositionImpl> |
getMessagesToReplayNow(int maxMessagesToRead) |
LinkedHashMap<Consumer,PositionImpl> |
getRecentlyJoinedConsumers() |
org.apache.pulsar.common.api.proto.CommandSubscribe.SubType |
getType() |
boolean |
isAllowOutOfOrderDelivery() |
void |
markDeletePositionMoveForward() |
void |
removeConsumer(Consumer consumer) |
protected void |
sendMessagesToConsumers(PersistentDispatcherMultipleConsumers.ReadType readType,
List<Entry> entries) |
addMessageToReplay, addMessageToReplay, addUnAckedMessages, asyncReplayEntriesInOrder, blockDispatcherOnUnackedMsgs, calculateToRead, cancelPendingRead, canUnsubscribe, checkAndUnblockIfStuck, clearDelayedMessages, close, consumerFlow, cursorIsReset, disconnectActiveConsumers, disconnectAllConsumers, getConsumers, getFirstAvailableConsumerPermits, getName, getNumberOfDelayedMessages, getRateLimiter, getRedeliveryTracker, getStickyKeyHash, getTopic, getTotalUnackedMessages, initializeDispatchRateLimiterIfNeeded, isAtleastOneConsumerAvailable, isBlockedDispatcherOnUnackedMsgs, isConsumerAvailable, isConsumerConnected, isConsumersExceededOnSubscription, readEntriesComplete, readEntriesFailed, readMoreEntries, redeliverUnacknowledgedMessages, redeliverUnacknowledgedMessages, reset, resetCloseFuture, shouldPauseDeliveryForDelayTracker, trackDelayedDelivery, unBlockDispatcherOnUnackedMsgs, updateRateLimitergetNextConsumer, getRandomConsumer, isClosedcomputeReadLimits, filterEntriesForConsumer, 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 org.apache.pulsar.common.api.proto.KeySharedMode getKeySharedMode()
public LinkedHashMap<Consumer,PositionImpl> getRecentlyJoinedConsumers()
public Map<Consumer,List<org.apache.pulsar.client.api.Range>> getConsumerKeyHashRanges()
public boolean isAllowOutOfOrderDelivery()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.