Architecture Diagrams for /jnidzwetzki/bitfinex-v2-wss-api-java[edit]
Packages / Module bitfinex-v2-wss-api / com.github.jnidzwetzki.bitfinex.v2.util / EventsInTimeslotManager

class EventsInTimeslotManager

This class limits the amount of events to t_events in a definable time period. recordNewEvent() records a new event, waitForNewTimeslot() blocks until less then t_events occurred in the period of time.
Class fields and methods
class EventsInTimeslotManager
This class limits the amount of events to t_events in a definable time ...
constructor EventsInTimeslotManager(numberOfEvents,timeslot,timeUnit)
method getNumberOfEventsInTimeslot()
method recordNewEvent()
method waitForNewTimeslot()
Get the number of events in the timeslot
Record a new event
Wait for a new timeslot