Class FutureRpcResults.FutureRpcResultBuilder<I,​O>

  • All Implemented Interfaces:
    org.opendaylight.yangtools.concepts.Builder<Future<org.opendaylight.yangtools.yang.common.RpcResult<O>>>, org.opendaylight.yangtools.concepts.CheckedBuilder<Future<org.opendaylight.yangtools.yang.common.RpcResult<O>>,​IllegalArgumentException>, org.opendaylight.yangtools.concepts.Mutable, org.opendaylight.yangtools.concepts.MutationBehaviour<org.opendaylight.yangtools.concepts.Mutable>
    Enclosing class:
    FutureRpcResults

    public static final class FutureRpcResults.FutureRpcResultBuilder<I,​O>
    extends Object
    implements org.opendaylight.yangtools.concepts.Builder<Future<org.opendaylight.yangtools.yang.common.RpcResult<O>>>
    • Method Detail

      • build

        @CheckReturnValue
        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<O>> build()
        Builds the Future RpcResult.
        Specified by:
        build in interface org.opendaylight.yangtools.concepts.Builder<I>
        Specified by:
        build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<I,​O>
        Returns:
        Future RpcResult. Note that this will NEVER be a failed Future; any errors are reported as !RpcResult.isSuccessful(), with details in RpcResult.getErrors(), and not the Future itself.
      • onFailureLogLevel

        public FutureRpcResults.FutureRpcResultBuilder<I,​O> onFailureLogLevel​(FutureRpcResults.LogLevel level)
        Sets a custom on-failure SLF4J logging level, in case of an exception. The log message mentions the RPC method name, the provided input, the exception and its stack trace (depending on logger settings). By default, it is LOG.error. Setting NONE will disable this logging.
      • onSuccessLogLevel

        public FutureRpcResults.FutureRpcResultBuilder<I,​O> onSuccessLogLevel​(FutureRpcResults.LogLevel level)
        Sets a custom on-success SLF4J logging level. The log message mentions the RPC method name, the provided input, and the resulting output. By default, it is LOG.debug. Setting NONE will disable this logging.