pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] merlimat closed pull request #992: Implement toString in ProducerBase and ConsumerBase
Date Thu, 01 Jan 1970 00:00:00 GMT
merlimat closed pull request #992: Implement toString in ProducerBase and ConsumerBase
URL: https://github.com/apache/incubator-pulsar/pull/992
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBase.java b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBase.java
index 4bc37ebe0..96e2a84a7 100644
--- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBase.java
+++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBase.java
@@ -328,4 +328,13 @@ public String getSubscription() {
      * breaks, the messages are redelivered after reconnect.
      */
     protected abstract void redeliverUnacknowledgedMessages(Set<MessageIdImpl> messageIds);
+
+    @Override
+    public String toString() {
+        return "ConsumerBase{" +
+                "subscription='" + subscription + '\'' +
+                ", consumerName='" + consumerName + '\'' +
+                ", topic='" + topic + '\'' +
+                '}';
+    }
 }
diff --git a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerBase.java b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerBase.java
index bc2ea5af8..03680a1bc 100644
--- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerBase.java
+++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerBase.java
@@ -105,4 +105,11 @@ public ProducerConfiguration getConfiguration() {
     public CompletableFuture<Producer> producerCreatedFuture() {
         return producerCreatedFuture;
     }
+
+    @Override
+    public String toString() {
+        return "ProducerBase{" +
+                "topic='" + topic + '\'' +
+                '}';
+    }
 }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message