*/
package org.opendaylight.mdsal.dom.api;
-import com.google.common.util.concurrent.CheckedFuture;
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
+import com.google.common.util.concurrent.ListenableFuture;
+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;
*
* @param type SchemaPath of the RPC to be invoked
* @param input Input arguments, null if the RPC does not take any.
- * @return A {@link CheckedFuture} which will return either a result structure,
- * or report a subclass of {@link DOMRpcException} reporting a transport
- * error.
+ * @return A {@link ListenableFuture} which will return either a result structure, or report a subclass
+ * of {@link DOMRpcException} reporting a transport error.
*/
- @Nonnull CheckedFuture<DOMRpcResult, DOMRpcException>
- invokeRpc(@Nonnull SchemaPath type, @Nullable NormalizedNode<?, ?> input);
+ // FIXME: 6.0.0: do not allow null input
+ @NonNull ListenableFuture<DOMRpcResult> invokeRpc(@NonNull SchemaPath type, @Nullable NormalizedNode<?, ?> input);
/**
* Register a {@link DOMRpcAvailabilityListener} with this service to receive notifications
*
* @param listener {@link DOMRpcAvailabilityListener} instance to register
* @return A {@link ListenerRegistration} representing this registration. Performing a
- * {@link ListenerRegistration#close()} will cancel it. Returned object is guaranteed to
- * be non-null.
+ * {@link ListenerRegistration#close()} will cancel it. Returned object is guaranteed to be non-null.
*/
- @Nonnull <T extends DOMRpcAvailabilityListener> ListenerRegistration<T> registerRpcListener(@Nonnull T listener);
+ @NonNull <T extends DOMRpcAvailabilityListener> ListenerRegistration<T> registerRpcListener(@NonNull T listener);
}