示例#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");
 }
示例#3
0
 //---------------------------------------------------------------------
 public void Dispose()
 {
     close();
     ZK_CONST.Release();
 }