public class NonPersistentStickyKeyDispatcherMultipleConsumers extends NonPersistentDispatcherMultipleConsumers
msgDrop, subscription, TOTAL_AVAILABLE_PERMITS_UPDATERconsumerList, consumerSet, currentConsumerRoundRobinIndex, FALSE, IS_CLOSED_UPDATER, TRUENONE_KEY| Constructor and Description |
|---|
NonPersistentStickyKeyDispatcherMultipleConsumers(NonPersistentTopic topic,
Subscription subscription,
StickyKeyConsumerSelector selector) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(Consumer consumer) |
org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType |
getType() |
void |
removeConsumer(Consumer consumer) |
void |
sendMessages(List<Entry> entries) |
canUnsubscribe, close, consumerFlow, disconnectActiveConsumers, disconnectAllConsumers, getConsumers, getMessageDropRate, getRedeliveryTracker, hasPermits, isConsumerAvailable, isConsumerConnected, reset, resetCloseFuturegetNextConsumer, getRandomConsumer, isClosedaddMessageToReplay, filterEntriesForConsumer, peekStickyKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddUnAckedMessages, redeliverUnacknowledgedMessages, redeliverUnacknowledgedMessagesclearDelayedMessages, cursorIsReset, disconnectAllConsumers, getNumberOfDelayedMessages, getRateLimiter, initializeDispatchRateLimiterIfNeeded, isClosed, markDeletePositionMoveForward, trackDelayedDelivery, updateRateLimiterpublic NonPersistentStickyKeyDispatcherMultipleConsumers(NonPersistentTopic topic, Subscription subscription, StickyKeyConsumerSelector selector)
public void addConsumer(Consumer consumer) throws BrokerServiceException
addConsumer in interface DispatcheraddConsumer in interface NonPersistentDispatcheraddConsumer in class NonPersistentDispatcherMultipleConsumersBrokerServiceExceptionpublic void removeConsumer(Consumer consumer) throws BrokerServiceException
removeConsumer in interface DispatcherremoveConsumer in interface NonPersistentDispatcherremoveConsumer in class NonPersistentDispatcherMultipleConsumersBrokerServiceExceptionpublic org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType getType()
getType in interface DispatchergetType in interface NonPersistentDispatchergetType in class NonPersistentDispatcherMultipleConsumerspublic void sendMessages(List<Entry> entries)
sendMessages in interface NonPersistentDispatchersendMessages in class NonPersistentDispatcherMultipleConsumersCopyright © 2017–2021 Apache Software Foundation. All rights reserved.