C# Class Kafka.Client.ZooKeeperIntegration.Listeners.ZKSessionExpireListener

Inheritance: IZooKeeperStateListener
Afficher le fichier Open project: precog/kafka

Méthodes publiques

Méthode Description
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

Method Details

HandleSessionCreated() public méthode

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.
Résultat void

HandleStateChanged() public méthode

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.
Résultat void

ZKSessionExpireListener() public méthode

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
Résultat System