示例#1
0
 public ClientConnectionRequestProducer(ClientConnection conn)
 {
     this.conn     = conn;
     zooKeeper     = conn.zooKeeper;
     zkEndpoints   = new ZooKeeperEndpoints(conn.serverAddrs);
     requestThread = new Thread(new SafeThreadStart(SendRequests).Run)
     {
         Name = new StringBuilder("ZK-SendThread ").Append(conn.zooKeeper.Id).ToString(), IsBackground = true
     };
 }