}
protected Either<Boolean, HChannel> storeSubscriptionChannel(
TopicSubscriber topicSubscriber, PubSubData txn, Channel channel) {
InetSocketAddress host = NetUtils.getHostFromChannel(channel);
HChannel newHChannel = new HChannelImpl(host, channel, this,
getSubscriptionChannelPipelineFactory());
boolean replaced = topicSubscriber2Channel.replaceChannel(
topicSubscriber, txn.getOriginalChannelForResubscribe(), newHChannel);
if (replaced) {
return Either.of(replaced, newHChannel);