pub = new HedwigPublisher(this);
sub = new HedwigSubscriber(this);
pipelineFactory = new ClientChannelPipelineFactory(this);
consumeCb = new MessageConsumeCallback(this);
if (cfg.isSSLEnabled()) {
sslFactory = new SslClientContextFactory(cfg);
}
// Schedule all of the client timer tasks. Currently we only have the
// Request Timeout task.
clientTimer.schedule(new PubSubRequestTimeoutTask(), 0, cfg.getTimeoutThreadRunInterval());
}