Package com.google.api.gax.batching
Class FlowControlEventStats.FlowControlEvent
java.lang.Object
com.google.api.gax.batching.FlowControlEventStats.FlowControlEvent
- All Implemented Interfaces:
Comparable<FlowControlEventStats.FlowControlEvent>
- Enclosing class:
- FlowControlEventStats
public static class FlowControlEventStats.FlowControlEvent
extends Object
implements Comparable<FlowControlEventStats.FlowControlEvent>
A flow control event. Record throttled time if
FlowController.LimitExceededBehavior is FlowController.LimitExceededBehavior.Block, or the exception if the behavior is FlowController.LimitExceededBehavior.ThrowException.-
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(FlowControlEventStats.FlowControlEvent otherEvent) getThrottledTime(TimeUnit timeUnit) long
-
Method Details
-
getTimestampMs
public long getTimestampMs() -
getException
-
getThrottledTime
-
compareTo
- Specified by:
compareToin interfaceComparable<FlowControlEventStats.FlowControlEvent>
-