Class AbstractRequestContext<T>

    • Constructor Detail

      • AbstractRequestContext

        protected AbstractRequestContext​(org.opendaylight.yangtools.yang.common.Uint32 xid)
      • AbstractRequestContext

        @Deprecated
        protected AbstractRequestContext​(Long xid)
        Deprecated.
    • Method Detail

      • getFuture

        public final com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> getFuture()
        Description copied from interface: RequestFutureContext
        Method returns future to be used for handling device requests.
        Specified by:
        getFuture in interface RequestFutureContext<T>
        Returns:
        rpc result
      • setResult

        public final void setResult​(org.opendaylight.yangtools.yang.common.RpcResult<T> result)
        Specified by:
        setResult in interface RequestFutureContext<T>
      • getXid

        public final Xid getXid()
        Description copied from interface: RequestContext
        Returns XID generated for this request.
        Specified by:
        getXid in interface RequestContext<T>
        Returns:
        Allocated XID, or null if the device has disconnected.