*
* @throws IOException if failed to initialize
*/
public void
init(InetSocketAddress endpoint, HeartbeatCallback cb) throws IOException {
this.threadGroup = new MQThreadGroup("Heartbeat");
this.bindEndpoint = endpoint;
this.cb =cb;
receiver = new Receiver();
sender = new Sender();
started = false;