Skip to content

Commit f508116

Browse files
committed
Removing a Java 8 only dependency
1 parent 04ed15d commit f508116

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package com.google.cloud.pubsub;
1818

1919
import com.google.common.math.Stats;
20-
import java.time.LocalDateTime;
2120
import javax.annotation.concurrent.Immutable;
2221

2322
/**
@@ -27,15 +26,13 @@
2726
//TODO: Finish implementation.
2827
@Immutable
2928
public class SubscriberStats {
30-
private final LocalDateTime startTime;
3129
private final long totalReceivedMessages;
3230
private final long totalAckedMessages;
3331
private final Stats endToEndLatency;
3432
private final Stats ackLatency;
3533
private final long numberOfAutoExtendedAckDeadlines;
3634

37-
SubscriberStats(LocalDateTime startTime) {
38-
this.startTime = startTime;
35+
SubscriberStats() {
3936
this.totalReceivedMessages = 0;
4037
this.totalAckedMessages = 0;
4138
this.numberOfAutoExtendedAckDeadlines = 0;
@@ -53,11 +50,6 @@ public long getAckedMessages() {
5350
return totalAckedMessages;
5451
}
5552

56-
/** Time when the subscriber started. */
57-
public LocalDateTime getStartTime() {
58-
return startTime;
59-
}
60-
6153
/** Number of received messages. */
6254
public long getTotalReceivedMessages() {
6355
return totalReceivedMessages;

0 commit comments

Comments
 (0)