logger.debug("Calling consume for topic: " + topic.toStringUtf8() + ", subscriberId: "
+ subscriberId.toStringUtf8() + ", messageSeqId: " + messageSeqId);
TopicSubscriber topicSubscriber = new TopicSubscriber(topic, subscriberId);
// Check that this topic subscription on the client side exists.
if (!topicSubscriber2Channel.containsKey(topicSubscriber)) {
throw new ClientNotSubscribedException(
"Cannot send consume message since client is not subscribed to topic: " + topic.toStringUtf8()
+ ", subscriberId: " + subscriberId.toStringUtf8());
}
PubSubData pubSubData = new PubSubData(topic, null, subscriberId, OperationType.CONSUME, null, null, null);
// Send the consume message to the server using the same subscribe