Interface DOMRpcImplementation
-
@Deprecated(forRemoval=true) public interface DOMRpcImplementation
Deprecated, for removal: This API element is subject to removal in a future version.UseDOMRpcImplementationinstead.Interface implemented by an individual RPC implementation. This API allows for dispatch implementations, e.g. an individual object handling a multitude of RPCs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default longinvocationCost()Deprecated, for removal: This API element is subject to removal in a future version.Return the relative invocation cost of this implementation.@NonNull com.google.common.util.concurrent.CheckedFuture<DOMRpcResult,DOMRpcException>invokeRpc(@NonNull DOMRpcIdentifier rpc, @Nullable org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> input)Deprecated, for removal: This API element is subject to removal in a future version.Initiate invocation of the RPC.
-
-
-
Method Detail
-
invokeRpc
@NonNull com.google.common.util.concurrent.CheckedFuture<DOMRpcResult,DOMRpcException> invokeRpc(@NonNull DOMRpcIdentifier rpc, @Nullable org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> input)
Deprecated, for removal: This API element is subject to removal in a future version.Initiate invocation of the RPC. Implementations of this method are expected to not block on external resources.- Parameters:
rpc- RPC identifier which was invokedinput- Input arguments, null if the RPC does not take any.- Returns:
- A
CheckedFuturewhich will return either a result structure, or report a subclass ofDOMRpcExceptionreporting a transport error.
-
invocationCost
default long invocationCost()
Deprecated, for removal: This API element is subject to removal in a future version.Return the relative invocation cost of this implementation. Default implementation return 0.- Returns:
- Non-negative cost of invoking this implementation.
-
-