X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fapi%2FDOMNotificationPublishService.java;h=a7d2770172c0ad0063fc26a84cef84d23ae812b4;hb=4c37231eb537700ea49a0dcb2004b9883baa63ac;hp=8a845e87299fd87c89c553243fa31974b9382454;hpb=e8ee8a8897013fb90376e21ccd9fc54a98a8c251;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMNotificationPublishService.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMNotificationPublishService.java index 8a845e8729..a7d2770172 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMNotificationPublishService.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMNotificationPublishService.java @@ -12,6 +12,7 @@ import com.google.common.util.concurrent.ListenableFuture; import java.util.concurrent.TimeUnit; import javax.annotation.Nonnegative; import javax.annotation.Nonnull; +import org.opendaylight.controller.sal.core.api.BrokerService; /** * A {@link DOMService} which allows its user to send {@link DOMNotification}s. It @@ -23,12 +24,12 @@ import javax.annotation.Nonnull; * the caller to specify that it should never wait, or put an upper bound on how * long it is going to wait. */ -public interface DOMNotificationPublishService extends DOMService { +public interface DOMNotificationPublishService extends DOMService, BrokerService { /** * Well-known value indicating that the implementation is currently not * able to accept a notification. */ - ListenableFuture REJECTED = Futures.immediateFailedFuture(new Throwable("Unacceptable blocking conditions encountered")); + ListenableFuture REJECTED = Futures.immediateFailedFuture(new DOMNotificationRejectedException("Unacceptable blocking conditions encountered")); /** * Publish a notification. The result of this method is a {@link ListenableFuture}