public ClientReceivingThread(ClientThread clientThread, ReceivingQManager receivingQManager) { this.clientThread = clientThread; this.receivingQManager = receivingQManager; bRunFlag = true; ThreadStart threadStart = new ThreadStart(run); Thread thread = new Thread(threadStart); thread.Start(); }
private void initReceiver() { if (receiver != null) { receivingQManager = new ReceivingQManager(configLoader.getReceivingQueueSize(), configLoader.getHeartbeatInterval(), configLoader.getHeartbeatCount()); clientReceivingThread = new ClientReceivingThread(this, receivingQManager); } else { bInitStatus = false; } }