curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bae, Jae Hyeon" <>
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 <> 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

View raw message