agave-notifications/notifications-core/src/main/java/org/iplantc/service/notification/dao/FailedNotificationAttemptQueue.java
/**
	 * Pushes a {@link NotificationAttempt} into a MongoDB capped collection
	 * named after the associationed {@link Notification} uuid.
	 * 
	 * @param attempt the attempt to add to the collection
	 * @throws NotificationException if unable to persist attempt
	 */
Pushes a  NotificationAttempt into a MongoDB capped collection
named after the associationed  Notification uuid.

@param attempt the attempt to add to the collection
@throws NotificationException if unable to persist attempt
Pushes a NotificationAttempt into a MongoDB capped collection named after the associationed Notification uuid . @param attempt the attempt to add to the collection @throws NotificationException if unable to persist attempt
public void push(NotificationAttempt attempt) 
	throws NotificationException
	{
		String json = null;
		try {
			MongoCollection<NotificationAttempt> cappedCollection = getOrCreateCappedCollection(attempt.getNotificationId());
			cappedCollection.insertOne(attempt);
		}
		catch (MongoException e) {
			log.error("Failed to push failed notification attempt for " + attempt.getUuid() + 
					" on to the failed queue for "  + attempt.getNotificationId(), e);
		}
		catch (Exception e) {
			log.error("Unexpected server error while writing attempt " + attempt.getUuid() + 
					" on to the failed queue for "  + attempt.getNotificationId(), e);
		}
		finally {
			try {
				NotificationManager.process(attempt.getNotificationId(), "FAILURE", attempt.getOwner(), json);
			} 
			catch (Exception e) {
				log.error("Failed to raise failed notification event for " + attempt.getNotificationId() + 
						" after attempt " + attempt.getUuid() + " failed.", e);
			}
		}
	}
public void push ( NotificationAttempt attempt ) throws NotificationException { String json = null ; try { MongoCollection < NotificationAttempt > cappedCollection = getOrCreateCappedCollection ( attempt . getNotificationId ( ) ) ; cappedCollection . insertOne ( attempt ) ; } catch ( MongoException e ) { log . error ( "Failed to push failed notification attempt for " + attempt . getUuid ( ) + " on to the failed queue for " + attempt . getNotificationId ( ) , e ) ; } catch ( Exception e ) { log . error ( "Unexpected server error while writing attempt " + attempt . getUuid ( ) + " on to the failed queue for " + attempt . getNotificationId ( ) , e ) ; } finally { try { NotificationManager . process ( attempt . getNotificationId ( ) , "FAILURE" , attempt . getOwner ( ) , json ) ; } catch ( Exception e ) { log . error ( "Failed to raise failed notification event for " + attempt . getNotificationId ( ) + " after attempt " + attempt . getUuid ( ) + " failed." , e ) ; } } }
Pushes a {@link NotificationAttempt} into a MongoDB capped collection
 named after the associationed {@link Notification} uuid.
Pushes a { @link NotificationAttempt } into a MongoDB capped collection named after the associationed { @link Notification } uuid .
//		catch (JsonProcessingException e) { //			log.error("Failed to serialize attempt " + attempt.getUuid() + //					" prior to sending to the failed queue for "  + attempt.getNotificationId(), e); //		}