- All Implemented Interfaces:
Limiter
Limiter based on the system current nano time. Grants
when the a second amount of nanoseconds have passed
since the last obtain.
-
Constructor Summary
Constructors
-
Method Summary
boolean
Determine if the function may proceed.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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