You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@curator.apache.org by Sznajder ForMailingList <bs...@gmail.com> on 2013/11/03 15:35:57 UTC

method void stateChanged

Hi

In the last version of Curator , I do not see the handling of
stateChanged

in the leader Selector example

https://git-wip-us.apache.org/repos/asf?p=curator.git;a=blob;f=curator-examples/src/main/java/leader/ExampleClient.java;h=6ec4a1f9d4a11fd52a44eafaca46b8ae9f9b40c4;hb=HEAD


Does that mean we can ignore it?
What happens in case the connection is lost or suspended? Who handles that?

Best regards

Benjamin

Re: method void stateChanged

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
BTW - this will be available in the next release:

https://issues.apache.org/jira/browse/CURATOR-54


On Nov 3, 2013, at 8:01 AM, Jordan Zimmerman <jo...@jordanzimmerman.com> wrote:

> It’s in LeaderSelectorListenerAdapter. It has default handling.
> 
> -JZ
> 
> On Nov 3, 2013, at 6:35 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:
> 
>> Hi
>> 
>> In the last version of Curator , I do not see the handling of 
>> stateChanged
>> 
>> in the leader Selector example
>> 
>> https://git-wip-us.apache.org/repos/asf?p=curator.git;a=blob;f=curator-examples/src/main/java/leader/ExampleClient.java;h=6ec4a1f9d4a11fd52a44eafaca46b8ae9f9b40c4;hb=HEAD
>> 
>> 
>> Does that mean we can ignore it? 
>> What happens in case the connection is lost or suspended? Who handles that?
>> 
>> Best regards
>> 
>> Benjamin
> 


Re: method void stateChanged

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
It’s in LeaderSelectorListenerAdapter. It has default handling.

-JZ

On Nov 3, 2013, at 6:35 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:

> Hi
> 
> In the last version of Curator , I do not see the handling of 
> stateChanged
> 
> in the leader Selector example
> 
> https://git-wip-us.apache.org/repos/asf?p=curator.git;a=blob;f=curator-examples/src/main/java/leader/ExampleClient.java;h=6ec4a1f9d4a11fd52a44eafaca46b8ae9f9b40c4;hb=HEAD
> 
> 
> Does that mean we can ignore it? 
> What happens in case the connection is lost or suspended? Who handles that?
> 
> Best regards
> 
> Benjamin