Class FlowControlEventStats.FlowControlEvent (2.83.0)

public static class FlowControlEventStats.FlowControlEvent implements Comparable<FlowControlEventStats.FlowControlEvent>

A flow control event. Record throttled time if LimitExceededBehavior is LimitExceededBehavior#Block, or the exception if the behavior is LimitExceededBehavior#ThrowException.

Inheritance

java.lang.Object > FlowControlEventStats.FlowControlEvent

Methods

compareTo(FlowControlEventStats.FlowControlEvent otherEvent)

public int compareTo(FlowControlEventStats.FlowControlEvent otherEvent)
Parameter
Name Description
otherEvent FlowControlEventStats.FlowControlEvent
Returns
Type Description
int

getException()

public @Nullable FlowController.FlowControlException getException()
Returns
Type Description
@org.jspecify.annotations.Nullable com.google.api.gax.batching.FlowController.FlowControlException

getThrottledTime(TimeUnit timeUnit)

public @Nullable Long getThrottledTime(TimeUnit timeUnit)
Parameter
Name Description
timeUnit TimeUnit
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.Long

getTimestampMs()

public long getTimestampMs()
Returns
Type Description
long