* - {@link #offerNotification(Notification, int, TimeUnit)}, which may block
* for specified time if resources are thin.
*
+ * <p>
* The actual delivery to listeners is asynchronous and implementation-specific.
* Users of this interface should not make any assumptions as to whether the
* notification has or has not been seen.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.api.NotificationPublishService} instead
*/
+@Deprecated
public interface NotificationPublishService extends BindingService {
/**
* Well-known value indicating that the binding-aware implementation is currently not
* able to accept a notification.
*/
- ListenableFuture<Object> REJECTED = Futures.immediateFailedFuture(new NotificationRejectedException("Rejected due to resource constraints."));
+ ListenableFuture<Object> REJECTED = Futures.immediateFailedFuture(new NotificationRejectedException(
+ "Rejected due to resource constraints."));
/**
* Publishes a notification to subscribed listeners. This initiates
* listeners can happen asynchronously, potentially after a call to
* this method returns.
*
+ * <p>
* Still guaranteed not to block. Returns Listenable Future which will complete once.
*
* @param notification
* the notification to publish.
* @return A listenable future which will report completion when the service has finished
- * propagating the notification to its immediate registrants, or {@value #REJECTED} if resource
- * constraints prevent
+ * propagating the notification to its immediate registrants, or {@link #REJECTED} if resource
+ * constraints prevent
* @throws NullPointerException if the notification is null
*/
- ListenableFuture<? extends Object> offerNotification(Notification notification);
+ ListenableFuture<?> offerNotification(Notification notification);
/**
* Publishes a notification to subscribed listeners. This initiates
* @param unit a TimeUnit determining how to interpret the
* timeout parameter
* @return A listenable future which will report completion when the service has finished
- * propagating the notification to its immediate registrants, or {@value #REJECTED} if resource
- * constraints prevent
+ * propagating the notification to its immediate registrants, or {@link #REJECTED} if resource
+ * constraints prevent
* @throws InterruptedException if interrupted while waiting
* @throws NullPointerException if the notification or unit is null
* @throws IllegalArgumentException if timeout is negative.
*/
- ListenableFuture<? extends Object> offerNotification(Notification notification, int timeout, TimeUnit unit)
+ ListenableFuture<?> offerNotification(Notification notification, int timeout, TimeUnit unit)
throws InterruptedException;
}