Uses of Class
org.apache.dubbo.rpc.RpcServiceContext
Packages that use RpcServiceContext
-
Uses of RpcServiceContext in org.apache.dubbo.rpc
Methods in org.apache.dubbo.rpc that return RpcServiceContextModifier and TypeMethodDescriptionRpcServiceContext.copyOf(boolean needCopy) Only part of the properties are copied, the others are either not used currently or can be got from invocation.ExecutableListener.getContext()static RpcServiceContextRpcContext.getCurrentServiceContext()static RpcServiceContextRpcContext.getServiceContext()Using to pass environment parameters in the whole invocation.RpcServiceContext.setInvocation(Invocation invocation) RpcServiceContext.setInvoker(Invoker<?> invoker) RpcServiceContext.setInvokers(List<Invoker<?>> invokers) RpcServiceContext.setLocalAddress(String host, int port) set local address.RpcServiceContext.setLocalAddress(InetSocketAddress address) set local address.RpcServiceContext.setLocalInvoke(boolean localInvoke) RpcServiceContext.setRemoteAddress(String host, int port) set remote address.RpcServiceContext.setRemoteAddress(InetSocketAddress address) set remote address.RpcServiceContext.setRemoteApplicationName(String remoteApplicationName) Methods in org.apache.dubbo.rpc with parameters of type RpcServiceContextModifier and TypeMethodDescriptionvoidCancellationContext.addListener(CancellationListener cancellationListener, Executor executor, RpcServiceContext context) voidCancellationContext.addListener(CancellationListener cancellationListener, RpcServiceContext context) voidCancellationListener.cancelled(RpcServiceContext context) Notifies that a context was cancelled.Constructors in org.apache.dubbo.rpc with parameters of type RpcServiceContextModifierConstructorDescriptionExecutableListener(Executor executor, CancellationListener listener, RpcServiceContext context)