curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bae, Jae Hyeon" <metac...@gmail.com>
Subject Re: When is notLeader of LeaderLatchListener is called?
Date Tue, 12 Nov 2013 18:40:39 GMT
"Session is closed" means without calling LeaderLatch.close(), the process
finished or zookeeper connection is terminated. I saw LeaderLatch.close()
source code which is clearing all listeners and I am wondering when I
should expect notLeader() method would be called.


On Tue, Nov 12, 2013 at 7:21 AM, Jordan Zimmerman <
jordan@jordanzimmerman.com> wrote:

> > I forgot to ask this question...
> >
> > Is notLeader() method designed to be called when the session is closed?
> I don’t know what you mean by “session is closed”. Do you mean
> LeaderLatch.close()? All listeners are cleared when LeaderLatch.close() is
> called. close() should be thought of as “destroy”.
>
> -Jordan

Mime
View raw message