- <init>
- add
Tracks a window event
- setEvictionPolicy
- setTriggerPolicy
- compactWindow
expires events that fall out of the window every EXPIRE_EVENTS_THRESHOLD so that
the window does not
- getEarliestEventTs
Scans the event queue and returns the next earliest event ts between the startTs
and endTs
- getEventCount
Scans the event queue and returns number of events having timestamp less than or
equal to the refere
- getSlidingCountTimestamps
Scans the event queue and returns the list of event ts falling between startTs
(exclusive) and endTs
- scanEvents
Scan events in the queue, using the expiration policy to check if the event
should be evicted or not
- track
feed the event to the eviction and trigger policies for bookkeeping and
optionally firing the trigge
- getState
- onTrigger
The callback invoked by the trigger policy.