Package io.grpc.xds.client
Class LoadStatsManager2.ClusterDropStats
java.lang.Object
io.grpc.xds.client.LoadStatsManager2.ClusterDropStats
- Enclosing class:
LoadStatsManager2
Recorder for dropped requests. One instance per cluster with edsServiceName.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentMap
<String, AtomicLong> private final String
private final String
private final com.google.common.base.Stopwatch
private final AtomicLong
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ClusterDropStats
(String clusterName, String edsServiceName, com.google.common.base.Stopwatch stopwatch) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Records a dropped request without category.void
recordDroppedRequest
(String category) Records a dropped request with the specified category.void
release()
Release the hard reference for this stats object (previously obtained viaLoadStatsManager2.getClusterDropStats(java.lang.String, java.lang.String)
).snapshot()
-
Field Details
-
clusterName
-
edsServiceName
-
uncategorizedDrops
-
categorizedDrops
-
stopwatch
private final com.google.common.base.Stopwatch stopwatch
-
-
Constructor Details
-
ClusterDropStats
-
-
Method Details
-
recordDroppedRequest
Records a dropped request with the specified category. -
recordDroppedRequest
public void recordDroppedRequest()Records a dropped request without category. -
release
public void release()Release the hard reference for this stats object (previously obtained viaLoadStatsManager2.getClusterDropStats(java.lang.String, java.lang.String)
). The object may still be recording drops after this method, but there is no guarantee drops recorded after this point will be included in load reports. -
snapshot
-