Moving to after watches and executor initialized
This commit is contained in:
parent
5a0a6c600e
commit
9c8b89e0c6
1 changed files with 3 additions and 5 deletions
|
|
@ -83,10 +83,8 @@ public class LeaseCleanupManager {
|
||||||
public void start() {
|
public void start() {
|
||||||
log.debug("Starting lease cleanup thread.");
|
log.debug("Starting lease cleanup thread.");
|
||||||
|
|
||||||
if (!isRunning) {
|
|
||||||
completedLeaseStopwatch.start();
|
completedLeaseStopwatch.start();
|
||||||
garbageLeaseStopwatch.start();
|
garbageLeaseStopwatch.start();
|
||||||
}
|
|
||||||
|
|
||||||
deletionThreadPool.scheduleAtFixedRate(new LeaseCleanupThread(), INITIAL_DELAY, leaseCleanupIntervalMillis,
|
deletionThreadPool.scheduleAtFixedRate(new LeaseCleanupThread(), INITIAL_DELAY, leaseCleanupIntervalMillis,
|
||||||
TimeUnit.MILLISECONDS);
|
TimeUnit.MILLISECONDS);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue