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

Inheritance: IZooKeeperStateListener
Mostrar archivo Open project: precog/kafka

Public Methods

Method 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 method

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.
return void

HandleStateChanged() public method

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.
return void

ZKSessionExpireListener() public method

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
return System