Package net.devslash
Class TimedTicket
-
- All Implemented Interfaces:
public final class TimedTicketThis 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 LongtimeTillNextRelease()final UnitsetLastRelease()-
-
Method Detail
-
timeTillNextRelease
final Long timeTillNextRelease()
-
setLastRelease
final Unit setLastRelease()
-
-
-
-