public interface Throttled
|Modifier and Type||Method and Description|
Invoked by the throttler to indicate that the request cannot be fulfilled.
Invoked by the throttler to indicate that the request can now start.
void onThrottleReady(boolean wasDelayed)
wasDelayed- indicates whether the throttler delayed at all; this is so that requests don't have to rely on measuring time to determine it (this is useful for metrics).
void onThrottleFailure(@NonNull RequestThrottlingException error)
error- the error that the request should be completed (exceptionally) with.
Copyright © 2017–2022. All rights reserved.