I have a topic with two subscriptions. batchoperation is disabled at both topic level and subs level:
TopicDescription td = new TopicDescription(topicName);
td.setEnableBatchedOperations(false);
managementClient.createTopic(td);
SubscriptionDescription sd1 = new SubscriptionDescription(topicName, subOne);
sd1.setEnableBatchedOperations(false);
managementClient.createSubscription(sd1, somerule);
//2nd sub creation skipped
I verified these settings thru Service Bus Explorer.
However, I am still able to send messages to topic in batch mode using TopicClient.sendBatch(Collection<? extends IMessage> messages)
method. And I am able to read messages from each Sub using IMessageReceiver.receiveBatch(int maxMessageCount)
. How is this possible? Did I not understand the purpose of
enableBatchedOperations?
What is the purpose of enableBatchedOperations?