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