public class ConsumersSupervisor
extends java.lang.Object
| Constructor and Description |
|---|
ConsumersSupervisor(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository,
pl.allegro.tech.hermes.domain.topic.TopicRepository topicRepository,
pl.allegro.tech.hermes.common.kafka.offset.SubscriptionOffsetChangeIndicator subscriptionOffsetChangeIndicator,
ConsumersExecutorService executor,
ConsumerFactory consumerFactory,
java.util.List<MessageCommitter> messageCommitters,
java.util.List<OffsetsStorage> offsetsStorages,
pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics,
UndeliveredMessageLogPersister undeliveredMessageLogPersister) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignConsumerForSubscription(pl.allegro.tech.hermes.api.Subscription subscription) |
void |
deleteConsumerForSubscriptionName(pl.allegro.tech.hermes.api.SubscriptionName subscription) |
void |
notifyConsumerOnSubscriptionUpdate(pl.allegro.tech.hermes.api.Subscription modifiedSubscription)
Deprecated.
|
void |
retransmit(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName) |
void |
shutdown() |
void |
start() |
void |
updateSubscription(pl.allegro.tech.hermes.api.Subscription modifiedSubscription) |
@Inject
public ConsumersSupervisor(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository,
pl.allegro.tech.hermes.domain.topic.TopicRepository topicRepository,
pl.allegro.tech.hermes.common.kafka.offset.SubscriptionOffsetChangeIndicator subscriptionOffsetChangeIndicator,
ConsumersExecutorService executor,
ConsumerFactory consumerFactory,
java.util.List<MessageCommitter> messageCommitters,
java.util.List<OffsetsStorage> offsetsStorages,
pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics,
UndeliveredMessageLogPersister undeliveredMessageLogPersister)
public void assignConsumerForSubscription(pl.allegro.tech.hermes.api.Subscription subscription)
public void deleteConsumerForSubscriptionName(pl.allegro.tech.hermes.api.SubscriptionName subscription)
@Deprecated public void notifyConsumerOnSubscriptionUpdate(pl.allegro.tech.hermes.api.Subscription modifiedSubscription)
public void updateSubscription(pl.allegro.tech.hermes.api.Subscription modifiedSubscription)
public void start()
throws java.lang.Exception
java.lang.Exceptionpublic void shutdown()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void retransmit(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName)
throws java.lang.Exception
java.lang.Exception