public class HealthTrackerImpl extends Object implements HealthTracker
UNDELIVERED_FILTER_TEMPLATE
Constructor and Description |
---|
HealthTrackerImpl(com.google.pubsub.v1.ProjectSubscriptionName projectSubscriptionName,
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, wait
undeliveredFilter
public HealthTrackerImpl(com.google.pubsub.v1.ProjectSubscriptionName projectSubscriptionName, MetricServiceClient metricServiceClient, Integer lagThreshold, Integer backlogThreshold, Integer lookUpInterval)
public void processedMessage()
HealthTracker
processedMessage
in interface HealthTracker
public com.google.pubsub.v1.ProjectSubscriptionName subscription()
HealthTracker
subscription
in interface HealthTracker
public long messagesOverThreshold()
HealthTracker
messagesOverThreshold
in interface HealthTracker
Copyright © 2021. All rights reserved.