Package net.devslash
Class TimedTicket
-
- All Implemented Interfaces:
public final class TimedTicket
This class is split out from the Rate limiter to allow for better testing It effectively should manage the timesteps in which a request ticket can be allowed
-
-
Constructor Summary
Constructors Constructor Description TimedTicket(Long millSteps, Clock clock)
-
Method Summary
Modifier and Type Method Description final Long
timeTillNextRelease()
final Unit
setLastRelease()
-
-
Method Detail
-
timeTillNextRelease
final Long timeTillNextRelease()
-
setLastRelease
final Unit setLastRelease()
-
-
-
-