类的使用
org.apache.dubbo.rpc.RpcServiceContext
-
使用RpcServiceContext的程序包 程序包 说明 org.apache.dubbo.rpc -
-
org.apache.dubbo.rpc中RpcServiceContext的使用
返回RpcServiceContext的org.apache.dubbo.rpc中的方法 修饰符和类型 方法 说明 RpcServiceContextRpcServiceContext. copyOf(boolean needCopy)Only part of the properties are copied, the others are either not used currently or can be got from invocation.RpcServiceContextExecutableListener. getContext()static RpcServiceContextRpcContext. getCurrentServiceContext()static RpcServiceContextRpcContext. getServiceContext()Using to pass environment parameters in the whole invocation.RpcServiceContextRpcServiceContext. setInvocation(Invocation invocation)RpcServiceContextRpcServiceContext. setInvoker(Invoker<?> invoker)RpcServiceContextRpcServiceContext. setInvokers(List<Invoker<?>> invokers)RpcServiceContextRpcServiceContext. setLocalAddress(String host, int port)set local address.RpcServiceContextRpcServiceContext. setLocalAddress(InetSocketAddress address)set local address.RpcServiceContextRpcServiceContext. setRemoteAddress(String host, int port)set remote address.RpcServiceContextRpcServiceContext. setRemoteAddress(InetSocketAddress address)set remote address.RpcServiceContextRpcServiceContext. setRemoteApplicationName(String remoteApplicationName)参数类型为RpcServiceContext的org.apache.dubbo.rpc中的方法 修饰符和类型 方法 说明 voidCancellationContext. addListener(CancellationListener cancellationListener, Executor executor, RpcServiceContext context)voidCancellationContext. addListener(CancellationListener cancellationListener, RpcServiceContext context)voidCancellationListener. cancelled(RpcServiceContext context)Notifies that a context was cancelled.参数类型为RpcServiceContext的org.apache.dubbo.rpc中的构造器 构造器 说明 ExecutableListener(Executor executor, CancellationListener listener, RpcServiceContext context)
-