public void consume(ByteString topic, ByteString subscriberId, MessageSeqId messageSeqId)
throws ClientNotSubscribedException {
if (logger.isDebugEnabled())
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());