zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Narasimha Tadepalli <Narasimha.Tadepa...@pervasive.com>
Subject getChildren question.
Date Tue, 13 Nov 2012 19:47:52 GMT
Does anybody have any idea about importance of object parameter in this below method? What
exactly it does if we provide some object? Documentation didn't provide any details about
this extra parameter. Appreciate your time.

public void getChildren(String path,

                        Watcher watcher,


                        Object ctx)


for example

zk.getChildren("/node/child1/subchild", watcher, childrencallback, Context.MESSAGE);

where Context is enum

private enum Context {

NOTICE: All information in and attached to this email may be proprietary, confidential, privileged
and otherwise protected from improper or erroneous disclosure. If you are not the sender's
intended recipient, you are not authorized to intercept, read, print, retain, copy, forward,
or disseminate this message.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message