public interface Throttled
RequestThrottler.| Modifier and Type | Method and Description |
|---|---|
void |
onThrottleFailure(RequestThrottlingException error)
Invoked by the throttler to indicate that the request cannot be fulfilled.
|
void |
onThrottleReady(boolean wasDelayed)
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–2025. All rights reserved.