public class SelectiveSupervisorController extends java.lang.Object implements SupervisorController
| Constructor and Description |
|---|
SelectiveSupervisorController(ConsumersSupervisor supervisor,
SubscriptionsCache subscriptionsCache,
WorkTracker workTracker,
ConsumerNodesRegistry consumersRegistry,
pl.allegro.tech.hermes.common.admin.zookeeper.ZookeeperAdminCache adminCache,
pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
pl.allegro.tech.hermes.common.metric.HermesMetrics metrics) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
boolean |
isLeader() |
void |
onAssignmentRemoved(pl.allegro.tech.hermes.api.SubscriptionName subscription) |
void |
onRetransmissionStarts(pl.allegro.tech.hermes.api.SubscriptionName subscription) |
void |
onSubscriptionAssigned(pl.allegro.tech.hermes.api.Subscription subscription) |
void |
shutdown() |
void |
start() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonSubscriptionChanged, onSubscriptionCreated, onSubscriptionRemovedpublic SelectiveSupervisorController(ConsumersSupervisor supervisor, SubscriptionsCache subscriptionsCache, WorkTracker workTracker, ConsumerNodesRegistry consumersRegistry, pl.allegro.tech.hermes.common.admin.zookeeper.ZookeeperAdminCache adminCache, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, pl.allegro.tech.hermes.common.metric.HermesMetrics metrics)
public void onSubscriptionAssigned(pl.allegro.tech.hermes.api.Subscription subscription)
onSubscriptionAssigned in interface SubscriptionAssignmentAwarepublic void onAssignmentRemoved(pl.allegro.tech.hermes.api.SubscriptionName subscription)
onAssignmentRemoved in interface SubscriptionAssignmentAwarepublic void start()
throws java.lang.Exception
start in interface SupervisorControllerjava.lang.Exceptionpublic void shutdown()
throws java.lang.InterruptedException
shutdown in interface SupervisorControllerjava.lang.InterruptedExceptionpublic java.lang.String getId()
public boolean isLeader()
public void onRetransmissionStarts(pl.allegro.tech.hermes.api.SubscriptionName subscription)
throws java.lang.Exception
onRetransmissionStarts in interface pl.allegro.tech.hermes.common.admin.AdminOperationsCallbackjava.lang.Exception