agave-notifications/notifications-core/src/main/java/org/iplantc/service/notification/events/NotificationAttemptProcessor.java
/**
	 * Handles cleanup after a {@link NotificationAttempt} has failed enough
	 * times to violate the {@link NotificationPolicy} of the parent {@link Notification}
	 * 
	 * @param policy
	 * @param attempt
	 */
Handles cleanup after a  NotificationAttempt has failed enough
times to violate the  NotificationPolicy of the parent  Notification

@param policy
@param attempt
Handles cleanup after a NotificationAttempt has failed enough times to violate the NotificationPolicy of the parent Notification @param policy @param attempt
protected void handleCancelledNotification(NotificationPolicy policy, NotificationAttempt attempt) {
		log.debug("Notification " + attempt.getNotificationId() + " has been disabled by upstream process. No further attempts will be made.");
		if (policy == null || policy.isSaveOnFailure()) {
			saveFailedAttempt(attempt);
		}
		else {
			log.debug("Skipping persistence of failed attempt " + attempt.getUuid() + 
					" due to notification " + attempt.getNotificationId() + " policy.");
		}
	}
protected void handleCancelledNotification ( NotificationPolicy policy , NotificationAttempt attempt ) { log . debug ( "Notification " + attempt . getNotificationId ( ) + " has been disabled by upstream process. No further attempts will be made." ) ; if ( policy == null || policy . isSaveOnFailure ( ) ) { saveFailedAttempt ( attempt ) ; } else { log . debug ( "Skipping persistence of failed attempt " + attempt . getUuid ( ) + " due to notification " + attempt . getNotificationId ( ) + " policy." ) ; } }
Handles cleanup after a {@link NotificationAttempt} has failed enough
 times to violate the {@link NotificationPolicy} of the parent {@link Notification}
Handles cleanup after a { @link NotificationAttempt } has failed enough times to violate the { @link NotificationPolicy } of the parent { @link Notification }
// attempts have exceeded policy in some way