public interface RateLimitPolicy
| Modifier and Type | Method and Description |
|---|---|
default void |
onSuccess(java.util.List<KinesisRecord> records)
Called after Kinesis records are successfully retrieved.
|
default void |
onThrottle(KinesisClientThrottledException e)
Called after the Kinesis client is throttled.
|
default void onSuccess(java.util.List<KinesisRecord> records) throws java.lang.InterruptedException
records - The list of retrieved records.java.lang.InterruptedExceptiondefault void onThrottle(KinesisClientThrottledException e) throws java.lang.InterruptedException
e - The KinesisClientThrottledException thrown by the client.java.lang.InterruptedException