public interface SleepIntervalSupplier
Modifier and Type | Method and Description |
---|---|
long |
getNextInterval(long previousTickedMs,
long nowTimeStampMillis)
Gets the next interval for sleeping.
|
long |
getRunLimit(long previousTickedMs)
Gets the run limit from previous ticked.
|
long getNextInterval(long previousTickedMs, long nowTimeStampMillis)
previousTickedMs
- previous ticked time stamp in millisecondnowTimeStampMillis
- current time stamp in millisecondlong getRunLimit(long previousTickedMs)
previousTickedMs
- previous ticked time stamp in millisecondCopyright © 2023. All Rights Reserved.