Thanks Flavio, this was sufficient hint for me. I discovered that when there is a connection loss, a callback to processResults is invoked with the value of rc = Code.ConnectionLoss.
-- Regards, Apurv Verma On Sat, Jan 17, 2015 at 9:30 PM, Flavio Junqueira < [email protected]> wrote: > What's the rc when children is null? > > -Flavio > > > On 17 Jan 2015, at 11:22, Apurv Verma <[email protected]> wrote: > > > > Hey all, > > The *ChildrenCallback*#*processResult(int rc, String path, Object > > ctx, List<String> children)* method is a callback to the > > ZooKeeper#getChildren method as I understand. I am seeing a null value > > being passed in children sometimes. > > > > Is this allowed, if yes, when do we expect to see a null value? > > > > -- > > Regards, > > Apurv Verma > >
