Interface RateLimitPolicy
- All Known Implementing Classes:
RateLimitPolicyFactory.DefaultRateLimiter,RateLimitPolicyFactory.DelayIntervalRateLimiter
public interface RateLimitPolicy
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonSuccess(List<KinesisRecord> records) Called after Kinesis records are successfully retrieved.default voidCalled 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- TheKinesisClientThrottledExceptionthrown by the client.- Throws:
InterruptedException
-