void (final long nowMs, long lastLoggedAt) { while (!lastLoggedAtMsHolder.compareAndSet(lastLoggedAt, nowMs)) { lastLoggedAt = lastLoggedAtMsHolder.get(); if (lastLoggedAt >= nowMs) { break; // -> somebody else forwarded lastLoggedAtMsHolder for us } } }