* @throws InterruptedException if interrupted while waiting
* @throws NullPointerException if the notification is null
*/
- void putNotification(@NonNull Notification notification) throws InterruptedException;
+ void putNotification(@NonNull Notification<?> notification) throws InterruptedException;
/**
* Publishes a notification to subscribed listeners. This initiates the process of sending the
* resource constraints prevent
* @throws NullPointerException if the notification is null
*/
- @NonNull ListenableFuture<? extends Object> offerNotification(@NonNull Notification notification);
+ @NonNull ListenableFuture<? extends Object> offerNotification(@NonNull Notification<?> notification);
/**
* Publishes a notification to subscribed listeners. This initiates the process of sending the
* @throws NullPointerException if the notification or unit is null
* @throws IllegalArgumentException if timeout is negative.
*/
- @NonNull ListenableFuture<? extends Object> offerNotification(@NonNull Notification notification,
+ @NonNull ListenableFuture<? extends Object> offerNotification(@NonNull Notification<?> notification,
int timeout, @NonNull TimeUnit unit) throws InterruptedException;
}