Interface RateLimitPolicy
-
- All Known Implementing Classes:
RateLimitPolicyFactory.DefaultRateLimiter,RateLimitPolicyFactory.DelayIntervalRateLimiter
public interface RateLimitPolicy
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidonSuccess(java.util.List<KinesisRecord> records)Called after Kinesis records are successfully retrieved.default voidonThrottle(KinesisClientThrottledException e)Called after the Kinesis client is throttled.
-
-
-
Method Detail
-
onSuccess
default void onSuccess(java.util.List<KinesisRecord> records) throws java.lang.InterruptedException
Called after Kinesis records are successfully retrieved.- Parameters:
records- The list of retrieved records.- Throws:
java.lang.InterruptedException
-
onThrottle
default void onThrottle(KinesisClientThrottledException e) throws java.lang.InterruptedException
Called after the Kinesis client is throttled.- Parameters:
e- TheKinesisClientThrottledExceptionthrown by the client.- Throws:
java.lang.InterruptedException
-
-