agave-notifications/notifications-core/src/main/java/org/iplantc/service/notification/dao/FailedNotificationAttemptQueue.java
/**
	 * Deletes a single {@link NotificationAttempt} from the queue.
	 * 
	 * @param notificationId notification uuid
	 * @param attemptId the attempt uuid
	 * @return the {@link NotificationAttempt} at the top of the queue or null if the queue is empty.
	 * @throws NotificationException if unable to remove attempt
	 */
Deletes a single  NotificationAttempt from the queue.

@param notificationId notification uuid
@param attemptId the attempt uuid
@return the  NotificationAttempt at the top of the queue or null if the queue is empty.
@throws NotificationException if unable to remove attempt
Deletes a single NotificationAttempt from the queue . @param notificationId notification uuid @param attemptId the attempt uuid @return the NotificationAttempt at the top of the queue or null if the queue is empty . @throws NotificationException if unable to remove attempt
public void remove(String notificationId, String attemptId)
	throws NotificationException
	{
		try {
			MongoCollection<NotificationAttempt> cappedCollection = getOrCreateCappedCollection(notificationId);
			Document query = new Document(Map.of("id", attemptId));
			cappedCollection.deleteOne(query);
		}
		catch (MongoException e) {
			log.error("Failed to fetch last failed notification attempt for " + notificationId, e);
		}
		catch (Exception e) {
			log.error("Unexpected server error while fetching last failed notification attempt for " + 
					notificationId, e);
		}
	}
public void remove ( String notificationId , String attemptId ) throws NotificationException { try { MongoCollection < NotificationAttempt > cappedCollection = getOrCreateCappedCollection ( notificationId ) ; Document query = new Document ( Map . of ( "id" , attemptId ) ) ; cappedCollection . deleteOne ( query ) ; } catch ( MongoException e ) { log . error ( "Failed to fetch last failed notification attempt for " + notificationId , e ) ; } catch ( Exception e ) { log . error ( "Unexpected server error while fetching last failed notification attempt for " + notificationId , e ) ; } }
Deletes a single {@link NotificationAttempt} from the queue.
Deletes a single { @link NotificationAttempt } from the queue .