Example #1
0
        public Watcher Wrap(INodeWatcher watcher, bool ignoreCache)
        {
            if (watcher == null)
            {
                return(null);
            }

            if (ignoreCache)
            {
                return(new ZooKeeperNodeWatcher(watcher, log));
            }

            return(watcherWrappers.Obtain(watcher, w => new ZooKeeperNodeWatcher(w, log)));
        }
Example #2
0
 public ZooKeeperNodeWatcher(INodeWatcher watcher, ILog log)
 {
     this.watcher = watcher;
     this.log     = log;
 }