final void flushAccumulatedNotifications(SquidDatabase database, boolean shouldSendNotifications) { Set<T> accumulatedNotifications = notifyObjectAccumulator.get(); if (enabled && shouldSendNotifications) { sendNotificationsToAll(database, accumulatedNotifications); } accumulatedNotifications.clear(); }
final void flushAccumulatedNotifications(SquidDatabase database, boolean shouldSendNotifications) { Set<T> accumulatedNotifications = notifyObjectAccumulator.get(); if (enabled && shouldSendNotifications) { sendNotificationsToAll(database, accumulatedNotifications); } accumulatedNotifications.clear(); }