C# Класс Kafka.Client.ZooKeeperIntegration.Listeners.ZKSessionExpireListener

Наследование: IZooKeeperStateListener
Показать файл Открыть проект

Открытые методы

Метод Описание
HandleSessionCreated ( ZooKeeperSessionCreatedEventArgs args ) : void

Called after the ZooKeeper session has expired and a new session has been created.

You would have to re-create any ephemeral nodes here. Explicitly trigger load balancing for this consumer.

HandleStateChanged ( ZooKeeperStateChangedEventArgs args ) : void

Called when the ZooKeeper connection state has changed.

Do nothing, since zkclient will do reconnect for us.

ZKSessionExpireListener ( ZKGroupDirs dirs, string consumerIdString, TopicCount topicCount, ZKRebalancerListener loadBalancerListener, ZookeeperConsumerConnector zkConsumerConnector ) : System

Описание методов

HandleSessionCreated() публичный Метод

Called after the ZooKeeper session has expired and a new session has been created.
You would have to re-create any ephemeral nodes here. Explicitly trigger load balancing for this consumer.
public HandleSessionCreated ( ZooKeeperSessionCreatedEventArgs args ) : void
args Kafka.Client.ZooKeeperIntegration.Events.ZooKeeperSessionCreatedEventArgs The instance containing the event data.
Результат void

HandleStateChanged() публичный Метод

Called when the ZooKeeper connection state has changed.
Do nothing, since zkclient will do reconnect for us.
public HandleStateChanged ( ZooKeeperStateChangedEventArgs args ) : void
args Kafka.Client.ZooKeeperIntegration.Events.ZooKeeperStateChangedEventArgs The instance containing the event data.
Результат void

ZKSessionExpireListener() публичный Метод

public ZKSessionExpireListener ( ZKGroupDirs dirs, string consumerIdString, TopicCount topicCount, ZKRebalancerListener loadBalancerListener, ZookeeperConsumerConnector zkConsumerConnector ) : System
dirs Kafka.Client.Utils.ZKGroupDirs
consumerIdString string
topicCount Kafka.Client.Consumers.TopicCount
loadBalancerListener ZKRebalancerListener
zkConsumerConnector Kafka.Client.Consumers.ZookeeperConsumerConnector
Результат System