Skip to content

Commit f0b1bd6

Browse files
committed
hide Publisher and Subscriber's getStats()
The methods are not yet implemented, so there is no reason to expose it. Another way out is to delete it for the time being.
1 parent 1c80923 commit f0b1bd6

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/Publisher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,8 @@ public boolean failOnFlowControlLimits() {
467467
return failOnFlowControlLimits;
468468
}
469469

470-
/** Retrieves a snapshot of the publisher current {@link PublisherStats statistics}. */
471-
public PublisherStats getStats() {
470+
/** Retrieves a snapshot of the publisher current statistics. */
471+
private PublisherStats getStats() {
472472
// TODO: Implement this.
473473
throw new UnsupportedOperationException();
474474
}

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/PublisherStats.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Publisher}.
2424
*/
2525
@AutoValue
26-
public abstract class PublisherStats {
26+
abstract class PublisherStats {
2727
/** Number of successfully published messages. */
2828
public abstract long getAckedMessages();
2929

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/Subscriber.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public void run() {
356356
}
357357
}
358358

359-
public SubscriberStats getStats() {
359+
private SubscriberStats getStats() {
360360
// TODO: Implement me
361361
return null;
362362
}

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/SubscriberStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
* Subscriber}.
2424
*/
2525
@AutoValue
26-
public abstract class SubscriberStats {
27-
26+
abstract class SubscriberStats {
27+
2828
@AutoValue
2929
//TODO: Finish implementation.
3030
public abstract static class Stats {}

0 commit comments

Comments
 (0)