Skip to content

Commit

Permalink
Rename checkPeriod to checkPeriodMillis in WaitWindowObserver
Browse files Browse the repository at this point in the history
  • Loading branch information
billoley committed Oct 30, 2023
1 parent 78f0575 commit 7ab7dcc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class WaitWindowObserver {
protected AtomicLong remainingTimeMs = new AtomicLong(Long.MAX_VALUE);
protected TimerTask timerTask = null;
// How often the timerTask gets run
protected long checkPeriod = 50;
protected long checkPeriodMillis = 50;
// Seek range of the QueryIterator. Used to ensure that yieldKey is in the range.
protected Range seekRange = null;
// When collectTimingDetails==true, we set the yieldKey, return a WAIT_WINDOW_OVERRUN
Expand Down Expand Up @@ -137,7 +137,7 @@ public void start(Range seekRange, long yieldThresholdMs) {
this.endOfWaitWindow = yieldThresholdMs + System.currentTimeMillis();
if (this.timerTask == null) {
this.timerTask = new WaitWindowTimerTask();
WaitWindowObserver.getTimer().schedule(this.timerTask, this.checkPeriod, this.checkPeriod);
WaitWindowObserver.getTimer().schedule(this.timerTask, this.checkPeriodMillis, this.checkPeriodMillis);
}
}

Expand Down

0 comments on commit 7ab7dcc

Please sign in to comment.