程序包 org.apache.dubbo.rpc
-
接口概要 接口 说明 AsyncContext AsyncContext works like {@see javax.servlet.AsyncContext} in the Servlet 3.0.BaseFilter BaseFilter.Listener This callback listener applies to both synchronous and asynchronous calls, please put logics that need to be executed on return of rpc result in onResponse or onError respectively based on it is normal return or exception return.CancellationListener A listener notified on context cancellation.Constants Exporter<T> Exporter.ExporterListener ExporterListener.Filter Extension for intercepting the invocation for both service provider and consumer, furthermore, most of functions in dubbo are implemented base on the same mechanism.HeaderFilter Invocation Invocation.Invoker<T> Invoker.InvokerListener InvokerListener.PathResolver PathResolver maintains a mapping between request path and Invoker for multiple protocols.PenetrateAttachmentSelector Protocol Protocol.ProtocolServer Distinct fromRemotingServer
, each protocol holds one or more ProtocolServers(the number usually decides by port numbers), while each ProtocolServer holds zero or one RemotingServer.ProxyFactory ProxyFactory.Result (API, Prototype, NonThreadSafe) An RPCResult
.ServerService<T> ZoneDetector Extend and provide your own implementation if you want to distribute traffic around registries. -
类概要 类 说明 AppResponse AsyncRpcResult
is introduced in 3.0.0 to replace RpcResult, and RpcResult is replaced withAppResponse
: AsyncRpcResult is the object that is actually passed in the call chain AppResponse only simply represents the business resultAsyncContextImpl AsyncRpcResult This class represents an unfinished RPC call, it will hold some context information for this call, for example RpcContext and Invocation, so that when the call finishes and the result returns, it can guarantee all the contexts being recovered as the same as when the call was made before any callback is invoked.AttachmentsAdapter This class provides map adapters to support attachments in RpcContext, Invocation and Result switch fromto AttachmentsAdapter.ObjectToStringMap CancellationContext ExecutableListener FutureContext Used for async call scenario.InvocationProfilerUtils ListenableFilter 已过时。 RpcConstants 已过时。 Replace to org.apache.dubbo.common.ConstantsRpcContext Thread local context.RpcContext.RestoreContext Used to temporarily store and restore all kinds of contexts of current thread.RpcContext.RestoreServiceContext RpcContextAttachment RpcInvocation RPC Invocation.RpcServiceContext RpcStatus URL statistics.TimeoutCountDown TriRpcStatus See https://github.com/grpc/grpc/blob/master/doc/statuscodes.md -
枚举概要 枚举 说明 InvokeMode TriRpcStatus.Code -
异常错误概要 异常错误 说明 RpcException RPC Exception.StatusRpcException