java.lang.Object
nl._42.boot.logging.frontend.limiter.Timed
All Implemented Interfaces:
Limiter

public class Timed extends Object implements Limiter
Limiter based on the system current nano time. Grants when the a second amount of nanoseconds have passed since the last obtain.
  • Constructor Details

    • Timed

      public Timed(long millis)
  • Method Details

    • obtain

      public boolean obtain()
      Description copied from interface: Limiter
      Determine if the function may proceed.
      Specified by:
      obtain in interface Limiter
      Returns:
      if the function may proceed