"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 < [email protected]> 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
