public long getCreationTime(String path) {
        try {
            getEventLock().lockInterruptibly();
            return _connection.getCreateTime(path);
        } catch (KeeperException e) {
            throw ZkException.create(e);
        } catch (InterruptedException e) {
            throw new ZkInterruptedException(e);
        } finally {
            getEventLock().unlock();
        }
    }
Connect to ZooKeeper.

@param maxMsToWaitUntilConnected
@param watcher
@throws ZkInterruptedException if the connection timed out due to thread interruption
@throws ZkTimeoutException if the connection timed out
@throws IllegalStateException if the connection timed out due to thread interruption
shared/common/src/main/java/com/alibaba/otter/shared/common/utils/zookeeper/ZkClientx.java