Interface DOMRpcImplementation

    • Method Detail

      • invokeRpc

        @NonNull CheckedFuture<DOMRpcResult,​DOMRpcException> invokeRpc​(@NonNull DOMRpcIdentifier rpc,
                                                                             @Nullable 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 invoked
        input - Input arguments, null if the RPC does not take any.
        Returns:
        A CheckedFuture which will return either a result structure, or report a subclass of DOMRpcException reporting 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.