Esempio n. 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);
 }
Esempio n. 2
0
 //---------------------------------------------------------------------
 public void close()
 {
     if (mConnection == null)
     {
         return;
     }
     setShutdownTrigger(true);
     mConnection.close();
     mConnection = null;
     ZK_CONST.Release();
     EbLog.Note("Closing ZkClient...done");
 }