* Well-known value indicating that the implementation is currently not
* able to accept a notification.
*/
- ListenableFuture<Object> REJECTED = Futures.immediateFailedFuture(new DOMNotificationRejectedException("Unacceptable blocking conditions encountered"));
+ ListenableFuture<Object> REJECTED = Futures.immediateFailedFuture(
+ new DOMNotificationRejectedException("Unacceptable blocking conditions encountered"));
/**
* Publish a notification. The result of this method is a {@link ListenableFuture}
* and implementations may use it to convey additional information related to the
* publishing process.
*
+ * <p>
* Abstract subclasses can refine the return type as returning a promise of a
* more specific type, e.g.:
*
* ListenableFuture<? extends DeliveryStatus> putNotification(DOMNotification notification);
* }
*
+ * <p>
* Once the Future succeeds, the resulting object can be queried for traits using
* instanceof, e.g:
*
* }
* }
*
+ * <p>
* In case an implementation is running out of resources, it can block the calling
* thread until enough resources become available to accept the notification for
* processing, or it is interrupted.
*
+ * <p>
* Caution: completion here means that the implementation has completed processing
* of the notification. This does not mean that all existing registrants
* have seen the notification. Most importantly, the delivery process at