Class RateLimitPolicyFactory.DelayIntervalRateLimiter
- java.lang.Object
-
- org.apache.beam.sdk.io.aws2.kinesis.RateLimitPolicyFactory.DelayIntervalRateLimiter
-
- All Implemented Interfaces:
RateLimitPolicy
- Enclosing interface:
- RateLimitPolicyFactory
public static class RateLimitPolicyFactory.DelayIntervalRateLimiter extends java.lang.Object implements RateLimitPolicy
-
-
Constructor Summary
Constructors Constructor Description DelayIntervalRateLimiter()DelayIntervalRateLimiter(java.util.function.Supplier<org.joda.time.Duration> delay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonSuccess(java.util.List<KinesisRecord> records)Called after Kinesis records are successfully retrieved.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.beam.sdk.io.aws2.kinesis.RateLimitPolicy
onThrottle
-
-
-
-
Method Detail
-
onSuccess
public void onSuccess(java.util.List<KinesisRecord> records) throws java.lang.InterruptedException
Description copied from interface:RateLimitPolicyCalled after Kinesis records are successfully retrieved.- Specified by:
onSuccessin interfaceRateLimitPolicy- Parameters:
records- The list of retrieved records.- Throws:
java.lang.InterruptedException
-
-