Class RateLimiter

java.lang.Object
io.confluent.parallelconsumer.RateLimiter

public class RateLimiter
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    RateLimiter()  
    RateLimiter​(int seconds)  
  • Method Summary

    Modifier and Type Method Description
    boolean couldPerform()  
    java.time.Duration getElapsedDuration()  
    java.time.Duration getRate()  
    void performIfNotLimited​(java.lang.Runnable action)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait