curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vitalii Tymchyshyn <...@tym.im>
Subject Check if curator is connected.
Date Tue, 02 Sep 2014 18:48:58 GMT
Hello.

I am trying to find is client is connected at given point of time.

The only option I can see is to call blockUntilConnected(1, NANOSECONDS)
and check result.

What I found is that javadoc is different from the implementation.
According to javadoc blockUntilConnected(0, *) will wait indefinite, but
according to implementation blockUntilConnected(0, NANOSECONDS) will not
wait at all, instead blockUntilConnected(*, null) will wait.

Best regards, Vitalii Tymchyshyn

Mime
View raw message