zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 朱晨杰 <zcj0...@gmail.com>
Subject when to callback processResult
Date Mon, 11 Jul 2011 11:54:07 GMT
Hi, everyone:
   I'm new to zookeeper. I'm now reading through some demo and feel a little
confused about the "Watcher". The code is:

   zk.exists(znode, true, this, null);

   so now I have two callback: *process(WatchedEvent event)* which is for
Watcher and *processResult(int rc, String path, Object ctx, Stat
stat)*which is for AsyncCallback.StatCallback. So I want to know
what's the
difference of these two callback and when they will be called? I can't find
answers in API. Thanks!



-- 
Zhu Chenjie
Zhejiang University, China

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