Lines Matching refs:timing
112 Pair<Long, Integer> timing = cache.get(logMessage);
113 if (shouldLogNow(timing, curTime)) {
114 String log = buildMessage(logMessage, timing);
123 private static String buildMessage(String message, @Nullable Pair<Long, Integer> timing) {
125 .append("[").append(timing == null ? 1 : timing.second).append("]:")
131 Pair<Long, Integer> timing = cache.get(message);
132 if (timing != null) {
133 cache.put(message, new Pair<>(timing.first, timing.second + 1));
137 private static boolean shouldLogNow(@Nullable Pair<Long, Integer> timing, long curTime) {
138 return timing == null || curTime - timing.first > ERROR_LOG_DURATTION_MILLIS;