boolean () { final boolean b = System.currentTimeMillis() - ourErrorTime > ourErrorInterval && ourNotificationCount.get() < 5; if (b) { ourErrorTime = System.currentTimeMillis(); ourNotificationCount.incrementAndGet(); } return b; }