if (cfg.isSSLEnabled()) {
sslFactory = new SslClientContextFactory(cfg);
}
consumeCb = new MessageConsumeCallback(cfg, this);
eventEmitter = new SubscriptionEventEmitter();
// Schedule Request Timeout task.
clientTimer.schedule(new PubSubRequestTimeoutTask(), 0,
cfg.getTimeoutThreadRunInterval());
}