Interface RateLimitPolicy
- All Known Implementing Classes:
RateLimitPolicyFactory.DefaultRateLimiter
,RateLimitPolicyFactory.DelayIntervalRateLimiter
public interface RateLimitPolicy
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onSuccess
(List<KinesisRecord> records) Called after Kinesis records are successfully retrieved.default void
Called after the Kinesis client is throttled.
-
Method Details
-
onSuccess
Called after Kinesis records are successfully retrieved.- Parameters:
records
- The list of retrieved records.- Throws:
InterruptedException
-
onThrottle
Called after the Kinesis client is throttled.- Parameters:
e
- TheKinesisClientThrottledException
thrown by the client.- Throws:
InterruptedException
-