public class ConsumersSupervisor extends java.lang.Object implements SubscriptionCallback, pl.allegro.tech.hermes.common.admin.AdminOperationsCallback
| 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.subscription.offset.SubscriptionOffsetChangeIndicator subscriptionOffsetChangeIndicator,
ConsumersExecutorService executor,
ConsumerFactory consumerFactory,
java.util.List<MessageCommitter> messageCommitters,
java.util.List<OffsetsStorage> offsetsStorages,
SubscriptionsCache subscriptionsCache,
pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics,
pl.allegro.tech.hermes.common.admin.zookeeper.ZookeeperAdminCache adminCache,
UndeliveredMessageLogPersister undeliveredMessageLogPersister) |
| Modifier and Type | Method and Description |
|---|---|
void |
onRetransmissionStarts(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName) |
void |
onSubscriptionChanged(pl.allegro.tech.hermes.api.Subscription modifiedSubscription) |
void |
onSubscriptionCreated(pl.allegro.tech.hermes.api.Subscription subscription) |
void |
onSubscriptionRemoved(pl.allegro.tech.hermes.api.Subscription subscription) |
void |
shutdown() |
void |
start() |
@Inject
public ConsumersSupervisor(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository,
pl.allegro.tech.hermes.domain.subscription.offset.SubscriptionOffsetChangeIndicator subscriptionOffsetChangeIndicator,
ConsumersExecutorService executor,
ConsumerFactory consumerFactory,
java.util.List<MessageCommitter> messageCommitters,
java.util.List<OffsetsStorage> offsetsStorages,
SubscriptionsCache subscriptionsCache,
pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics,
pl.allegro.tech.hermes.common.admin.zookeeper.ZookeeperAdminCache adminCache,
UndeliveredMessageLogPersister undeliveredMessageLogPersister)
public void onSubscriptionCreated(pl.allegro.tech.hermes.api.Subscription subscription)
onSubscriptionCreated in interface SubscriptionCallbackpublic void onSubscriptionRemoved(pl.allegro.tech.hermes.api.Subscription subscription)
onSubscriptionRemoved in interface SubscriptionCallbackpublic void onSubscriptionChanged(pl.allegro.tech.hermes.api.Subscription modifiedSubscription)
onSubscriptionChanged in interface SubscriptionCallbackpublic void start()
throws java.lang.Exception
java.lang.Exceptionpublic void shutdown()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void onRetransmissionStarts(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName)
throws java.lang.Exception
onRetransmissionStarts in interface pl.allegro.tech.hermes.common.admin.AdminOperationsCallbackjava.lang.Exception