void (final String message, final @Nullable Throwable t) { final long nowMs = System.currentTimeMillis(); long lastLoggedAt = lastLoggedAtMsHolder.get(); if (lastLoggedAt + ignoreRepeatedMessagesInMs < nowMs) { logger.info(message, t); forwardLastLogged(nowMs, lastLoggedAt); } }