Class NoOpRateLimiter
- java.lang.Object
-
- org.apache.flink.api.connector.source.util.ratelimit.NoOpRateLimiter
-
- All Implemented Interfaces:
RateLimiter
@Internal public class NoOpRateLimiter extends Object implements RateLimiter
A convenience implementation ofRateLimiter
that does not throttle requests.
-
-
Constructor Summary
Constructors Constructor Description NoOpRateLimiter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>
acquire()
Returns a future that is completed once another event would not exceed the rate limit.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.api.connector.source.util.ratelimit.RateLimiter
notifyCheckpointComplete
-
-
-
-
Method Detail
-
acquire
public CompletionStage<Void> acquire()
Description copied from interface:RateLimiter
Returns a future that is completed once another event would not exceed the rate limit. For correct functioning, the next invocation of this method should only happen after the previously returned future has been completed.- Specified by:
acquire
in interfaceRateLimiter
-
-