Guest User

Untitled

a guest
Oct 7th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. private void fireDataChangedEvents(final String path, Set<IZkDataListener> listeners) {
  2. for (final IZkDataListener listener : listeners) {
  3. _eventThread.send(new ZkEvent("Data of " + path + " changed sent to " + listener) {
  4.  
  5. @Override
  6. public void run() throws Exception {
  7. // reinstall watch
  8. exists(path, true);
  9. try {
  10. Object data = readData(path, null, true);
  11. listener.handleDataChange(path, data);
  12. } catch (ZkNoNodeException e) {
  13. listener.handleDataDeleted(path);
  14. }
  15. }
  16. });
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment