public class HealthTrackerImpl extends Object implements HealthTracker
UNDELIVERED_FILTER_TEMPLATE| Constructor and Description |
|---|
HealthTrackerImpl(com.google.pubsub.v1.ProjectSubscriptionName projectSubscriptionName,
com.google.cloud.monitoring.v3.MetricServiceClient metricServiceClient,
Integer lagThreshold,
Integer backlogThreshold,
Integer lookUpInterval) |
| Modifier and Type | Method and Description |
|---|---|
long |
messagesOverThreshold()
If messages have been processed recently returns zero.
|
void |
processedMessage()
Record that a message has been processed.
|
com.google.pubsub.v1.ProjectSubscriptionName |
subscription()
Accessor for the Subscription being monitored by the tracker.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitundeliveredFilterpublic void processedMessage()
HealthTrackerprocessedMessage in interface HealthTrackerpublic com.google.pubsub.v1.ProjectSubscriptionName subscription()
HealthTrackersubscription in interface HealthTrackerpublic long messagesOverThreshold()
HealthTrackermessagesOverThreshold in interface HealthTrackerCopyright © 2024. All rights reserved.