@Override
  public void process(WatchedEvent event) {
    LOG.debug(prefix("Received ZooKeeper Event, " + "type=" + event.getType() + ", " + "state="
      + event.getState() + ", " + "path=" + event.getPath()));
    final String spanName = ZKWatcher.class.getSimpleName() + "-" + identifier;
    if (!zkEventProcessor.isShutdown()) {
      zkEventProcessor.execute(TraceUtil.tracedRunnable(() -> processEvent(event), spanName));
    }
  }
Method called from ZooKeeper for events and connection status.
<p>
Valid events are passed along to listeners. Connection status changes are dealt with locally.
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKWatcher.java