public class DurationChecker extends Object
Modifier and Type | Field and Description |
---|---|
static String |
THRESHOLD_IN_SECONDS_KEY |
Constructor and Description |
---|
DurationChecker(int defaultThresholdInSeconds) |
DurationChecker(int defaultThresholdInSeconds,
LongSupplier nanoTime) |
Modifier and Type | Method and Description |
---|---|
int |
getThresholdInSeconds()
Amount of seconds that should pass between the events
|
boolean |
thresholdElapsed()
Checks whether amount of time that is passed between the events has exceeded the threshold
|
public static final String THRESHOLD_IN_SECONDS_KEY
public DurationChecker(int defaultThresholdInSeconds)
public DurationChecker(int defaultThresholdInSeconds, LongSupplier nanoTime)
public int getThresholdInSeconds()
public boolean thresholdElapsed()
Copyright © 2003–2020 Atlassian. All rights reserved.