private void addLoggingListener() {
        curatorFramework.getConnectionStateListenable().addListener((curatorFramework, connectionState) -> {
            switch (connectionState) {
                case SUSPENDED -> LOG.info("ZK connection state change: SUSPENDED");
                case RECONNECTED -> LOG.info("ZK connection state change: RECONNECTED");
                case LOST -> LOG.warning("ZK connection state change: LOST");
            }
        });
    }
For internal use; prefer creating a {@link com.yahoo.vespa.curator.Lock}
zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java