//--------------------------------------------------------------------- //public ZkClient(CZkConnection zkConnection, int connectionTimeout, IZkOnOpeResult ope) public ZkClient(CZkConnection zkConnection, int connectionTimeout) { ZK_CONST.Init(); mConnection = zkConnection; //onOpeResult = ope; connect(connectionTimeout, watchFunction); }
//--------------------------------------------------------------------- public void close() { if (mConnection == null) { return; } setShutdownTrigger(true); mConnection.close(); mConnection = null; ZK_CONST.Release(); EbLog.Note("Closing ZkClient...done"); }