andrasbeni commented on code in PR #16062:
URL: https://github.com/apache/pulsar/pull/16062#discussion_r902833402
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java:
##########
@@ -1036,6 +1053,62 @@ private TransactionBufferHandler
checkAndGetTransactionBufferHandler() {
return transactionBufferHandler;
}
+ public CompletableFuture<CommandWatchTopicListSuccess> newWatchTopicList(
+ BaseCommand commandWatchTopicList, long requestId) {
+ if (!supportsTopicWatchers) {
+ return FutureUtil.failedFuture(
+ new PulsarClientException.NotAllowedException(
+ "Broker does not allow broker side pattern
evaluation."));
+ }
+ return
sendRequestAndHandleTimeout(Commands.serializeWithSize(commandWatchTopicList),
requestId,
+ RequestType.Command, true);
+ }
+
+ public CompletableFuture<CommandWatchTopicListSuccess> newUnwatchTopicList(
+ BaseCommand commandUnwatchTopicList, long requestId) {
+ if (!supportsTopicWatchers) {
+ return FutureUtil.failedFuture(
+ new PulsarClientException.NotAllowedException(
+ "Broker does not allow broker side pattern
evaluation."));
+ }
+ return
sendRequestAndHandleTimeout(Commands.serializeWithSize(commandUnwatchTopicList),
requestId,
+ RequestType.Command, true);
+ }
Review Comment:
Nice catch. I am removing it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]