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%2FDOMRpcService.java;h=870fe82ba4fe45c6ce8d1e58213808d44bf5fa8b;hb=refs%2Fchanges%2F11%2F80211%2F6;hp=48f6ab6500e0e4f1d8ab185431a71a513cfe9b40;hpb=c64ef5f44f131976c20fcf8ced56627f81091838;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcService.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcService.java index 48f6ab6500..870fe82ba4 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcService.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcService.java @@ -8,8 +8,8 @@ package org.opendaylight.controller.md.sal.dom.api; import com.google.common.util.concurrent.CheckedFuture; -import javax.annotation.Nonnull; -import javax.annotation.Nullable; +import org.eclipse.jdt.annotation.NonNull; +import org.eclipse.jdt.annotation.Nullable; import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode; import org.opendaylight.yangtools.yang.model.api.SchemaPath; @@ -19,7 +19,10 @@ import org.opendaylight.yangtools.yang.model.api.SchemaPath; * service is that of a dynamic router, where the set of available RPC services can change * dynamically. The service allows users to add a listener to track the process of * RPCs becoming available. + * + * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMRpcService} instead */ +@Deprecated public interface DOMRpcService extends DOMService { /** * Initiate invocation of an RPC. This method is guaranteed to not block on any external @@ -31,22 +34,27 @@ public interface DOMRpcService extends DOMService { * or report a subclass of {@link DOMRpcException} reporting a transport * error. */ - @Nonnull CheckedFuture invokeRpc(@Nonnull SchemaPath type, @Nullable NormalizedNode input); + @NonNull CheckedFuture invokeRpc(@NonNull SchemaPath type, + @Nullable NormalizedNode input); /** * Register a {@link DOMRpcAvailabilityListener} with this service to receive notifications * about RPC implementations becoming (un)available. The listener will be invoked with the * current implementations reported and will be kept uptodate as implementations come and go. * - * Users should note that using a listener does not necessarily mean that {@link #invokeRpc(SchemaPath, NormalizedNode)} - * will not report a failure due to {@link DOMRpcImplementationNotAvailableException} and - * need to be ready to handle it. Implementations are encouraged to take reasonable precautions - * to prevent this scenario from occurring. + *

+ * Users should note that using a listener does not necessarily mean that + * {@link #invokeRpc(SchemaPath, NormalizedNode)} will not report a failure due to + * {@link DOMRpcImplementationNotAvailableException} and need to be ready to handle it. + * + *

+ * Implementations of this interface are encouraged to take reasonable precautions to prevent this scenario from + * occurring. * * @param listener {@link DOMRpcAvailabilityListener} instance to register - * @return A {@link DOMRpcAvailabilityListenerRegistration} representing this registration. Performing - * a {@link DOMRpcAvailabilityListenerRegistration#close()} will cancel it. Returned object + * @return A {@link ListenerRegistration} representing this registration. Performing + * a {@link ListenerRegistration#close()} will cancel it. Returned object * is guaranteed to be non-null. */ - @Nonnull ListenerRegistration registerRpcListener(@Nonnull T listener); + @NonNull ListenerRegistration registerRpcListener(@NonNull T listener); }