class BackoffRetryManager implements RetryManager {

	public int secondsBeforeRetry (Notification notification) {	
		int delay = (int) Math.ceil((Math.pow(2, notification.getDeliveryAttempts()) - 1) / 2);	
		return delay > MAX_BACKOFF_DELAY ? MAX_BACKOFF_DELAY : delay;
	}

}