@Override public void run() { long lastLogPurge = System.nanoTime(); while (running) { long nowNanos = System.nanoTime(); long nowMillis = System.currentTimeMillis(); scan(nowNanos, nowMillis, genericOperationRunners, genericCurrentOperationData); scan(nowNanos, nowMillis, partitionOperationRunners, partitionCurrentOperationData); if (purge(nowNanos, lastLogPurge)) { lastLogPurge = nowNanos; } if (running) { sleepInterval(nowNanos); } } }
@Override public void run() { long lastLogPurge = System.nanoTime(); while (running) { long nowNanos = System.nanoTime(); long nowMillis = System.currentTimeMillis(); scan(nowNanos, nowMillis, genericOperationRunners, genericCurrentOperationData); scan(nowNanos, nowMillis, partitionOperationRunners, partitionCurrentOperationData); if (purge(nowNanos, lastLogPurge)) { lastLogPurge = nowNanos; } if (running) { sleepInterval(nowNanos); } } }