private void flushAccumulatedNotifications(boolean transactionSuccess) { Set<DataChangedNotifier<?>> accumulatedNotifiers = notifierAccumulator.get(); if (!accumulatedNotifiers.isEmpty()) { for (DataChangedNotifier<?> notifier : accumulatedNotifiers) { notifier.flushAccumulatedNotifications(this, transactionSuccess && dataChangedNotificationsEnabled); } accumulatedNotifiers.clear(); } }
private void flushAccumulatedNotifications(boolean transactionSuccess) { Set<DataChangedNotifier<?>> accumulatedNotifiers = notifierAccumulator.get(); if (!accumulatedNotifiers.isEmpty()) { for (DataChangedNotifier<?> notifier : accumulatedNotifiers) { notifier.flushAccumulatedNotifications(this, transactionSuccess && dataChangedNotificationsEnabled); } accumulatedNotifiers.clear(); } }