Class RateLimiterByMilisecond

java.lang.Object
org.jzy3d.chart.controllers.RateLimiterByMilisecond
All Implemented Interfaces:
RateLimiter
Direct Known Subclasses:
RateLimiterAdaptsToRenderTime

public class RateLimiterByMilisecond extends Object implements RateLimiter
Author:
martin
  • Field Details

    • RATE_LIMIT

      protected static final double RATE_LIMIT
      See Also:
    • rateLimitMilis

      protected double rateLimitMilis
    • rateLimitStarted

      protected boolean rateLimitStarted
    • t

      protected TicToc t
  • Constructor Details

    • RateLimiterByMilisecond

      public RateLimiterByMilisecond()
    • RateLimiterByMilisecond

      public RateLimiterByMilisecond(double rateLimitMilis)
  • Method Details

    • rateLimitCheck

      public boolean rateLimitCheck()
      Return true if the action is allowed according to elapsed time. Time starts counting at the first call to this method, so first call to a rate limit check will always succeed.
      Specified by:
      rateLimitCheck in interface RateLimiter
      Returns: