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 };
 }
 public ClientConnectionRequestProducer(ClientConnection conn)
 {
     this.conn = conn;
     zooKeeper = conn.zooKeeper;
     requestThread = new Thread(new SafeThreadStart(SendRequests).Run) { Name = "ZK-SendThread" + conn.zooKeeper.Id, IsBackground = true, Priority = ThreadPriority.AboveNormal};
 }
 public ClientConnectionEventConsumer(ClientConnection conn)
 {
     this.conn = conn;
     eventThread = new Thread(new SafeThreadStart(PollEvents).Run) { Name = "ZK-EventThread " + conn.zooKeeper.Id, IsBackground = true };
 }
 public ClientConnectionEventConsumer(ClientConnection conn)
 {
     this.conn = conn;
     eventThread = new Thread(new SafeThreadStart(PollEvents).Run) { Name = new StringBuilder("ZK-EventThread ").Append(conn.zooKeeper.Id).ToString(), IsBackground = true };
 }