类 RpcContext

    • 构造器详细资料

      • RpcContext

        public RpcContext​(RpcContext newRpcContext)
        已过时。
    • 方法详细资料

      • getContext

        public static RpcContext getContext()
        已过时。
      • getServerContext

        public static RpcContext getServerContext()
        已过时。
      • removeServerContext

        public static void removeServerContext()
        已过时。
      • removeContext

        public static void removeContext()
        已过时。
      • getRequest

        public Object getRequest()
        已过时。
      • getRequest

        public <T> T getRequest​(Class<T> clazz)
        已过时。
      • setRequest

        public void setRequest​(Object request)
        已过时。
      • getResponse

        public Object getResponse()
        已过时。
        Get the response object of the underlying RPC protocol, e.g. HttpServletResponse
        返回:
        null if the underlying protocol doesn't provide support for getting response
      • getResponse

        public <T> T getResponse​(Class<T> clazz)
        已过时。
        Get the response object of the underlying RPC protocol, e.g. HttpServletResponse
        返回:
        null if the underlying protocol doesn't provide support for getting response or the response is not of the specified type
      • setResponse

        public void setResponse​(Object response)
        已过时。
      • isProviderSide

        public boolean isProviderSide()
        已过时。
        is provider side.
        返回:
        provider side.
      • isConsumerSide

        public boolean isConsumerSide()
        已过时。
        is consumer side.
        返回:
        consumer side.
      • getUrls

        public List<URL> getUrls()
        已过时。
      • setUrls

        public void setUrls​(List<URL> urls)
        已过时。
      • getUrl

        public URL getUrl()
        已过时。
      • setUrl

        public void setUrl​(URL url)
        已过时。
      • getMethodName

        public String getMethodName()
        已过时。
      • setMethodName

        public void setMethodName​(String methodName)
        已过时。
      • getParameterTypes

        public Class<?>[] getParameterTypes()
        已过时。
      • setParameterTypes

        public void setParameterTypes​(Class<?>[] parameterTypes)
        已过时。
      • getArguments

        public Object[] getArguments()
        已过时。
      • setArguments

        public void setArguments​(Object[] arguments)
        已过时。
      • setLocalAddress

        public RpcContext setLocalAddress​(String host,
                                          int port)
        已过时。
      • getLocalAddress

        public InetSocketAddress getLocalAddress()
        已过时。
        get local address.
        返回:
        local address
      • getLocalAddressString

        public String getLocalAddressString()
        已过时。
      • getLocalHostName

        public String getLocalHostName()
        已过时。
      • setRemoteAddress

        public RpcContext setRemoteAddress​(String host,
                                           int port)
        已过时。
      • getRemoteAddressString

        public String getRemoteAddressString()
        已过时。
      • getRemoteHostName

        public String getRemoteHostName()
        已过时。
      • getLocalHost

        public String getLocalHost()
        已过时。
      • getLocalPort

        public int getLocalPort()
        已过时。
      • getRemoteHost

        public String getRemoteHost()
        已过时。
      • getRemotePort

        public int getRemotePort()
        已过时。
      • getAttachment

        public String getAttachment​(String key)
        已过时。
      • removeAttachment

        public RpcContext removeAttachment​(String key)
        已过时。
      • getAttachments

        public Map<String,​String> getAttachments()
        已过时。
      • clearAttachments

        public void clearAttachments()
        已过时。
      • get

        public Map<String,​Object> get()
        已过时。
        get values.
        返回:
        values
      • set

        public RpcContext set​(String key,
                              Object value)
        已过时。
        set value.
        参数:
        key -
        value -
        返回:
        context
      • isServerSide

        @Deprecated
        public boolean isServerSide()
        已过时。
      • isClientSide

        @Deprecated
        public boolean isClientSide()
        已过时。
      • asyncCall

        public <T> Future<T> asyncCall​(Callable<T> callable)
        已过时。
        Async invocation. Timeout will be handled even if Future.get() is not called.
        参数:
        callable -
        返回:
        get the return result from future.get()
      • asyncCall

        public void asyncCall​(Runnable runnable)
        已过时。
        one way async call, send request only, and result is not required
        参数:
        runnable -
      • getFuture

        public <T> Future<T> getFuture()
        已过时。