public void registerListenerFirst(ZKListener listener) {
    listeners.add(0, listener);
  }
Register the specified listener to receive ZooKeeper events and add it as the first in the list
of current listeners.
@param listener the listener to register
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKWatcher.java