ByteString subId;
while (true) {
subId = subscribers.take();
if (logger.isDebugEnabled()) {
logger.debug("subscriber " + subId.toStringUtf8() + " subscribes topic " + topic.toStringUtf8());
}
subscriber.asyncSubscribe(topic, subId, CreateOrAttach.CREATE_OR_ATTACH,
new SubCallback(subId), null);
}
// subscriber.asyncSubscribe(topic, subscriberId, mode, callback, context)