public class RecentEventsCounter
extends java.lang.Object
Constructor and Description |
---|
RecentEventsCounter(int maxEvents,
java.time.Duration duringDuration) |
Modifier and Type | Method and Description |
---|---|
void |
countEvent() |
void |
countEvent(java.util.Date now,
java.lang.String eventInfo) |
void |
countEvent(java.lang.String eventInfo) |
int |
countOfEventsWithinDuration() |
java.time.Duration |
getDuringDuration() |
int |
getMaxAllowedEvents() |
boolean |
thisEventExceedsLimit() |
boolean |
thisEventExceedsLimit(java.util.Date now) |
boolean |
thisEventExceedsLimit(java.util.Date now,
java.lang.String eventInfo) |
boolean |
thisEventWouldExceedLimit() |
void |
updateSettings(int maxEvents,
java.time.Duration duringDuration) |
public RecentEventsCounter(int maxEvents, java.time.Duration duringDuration)
public void updateSettings(int maxEvents, java.time.Duration duringDuration)
public boolean thisEventWouldExceedLimit()
public boolean thisEventExceedsLimit()
public boolean thisEventExceedsLimit(java.util.Date now)
public boolean thisEventExceedsLimit(java.util.Date now, java.lang.String eventInfo)
public void countEvent()
public void countEvent(java.lang.String eventInfo)
public void countEvent(java.util.Date now, java.lang.String eventInfo)
public int countOfEventsWithinDuration()
public int getMaxAllowedEvents()
public java.time.Duration getDuringDuration()
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.