| 程序包 | 说明 |
|---|---|
| com.baidu.brpc.client | |
| com.baidu.brpc.interceptor | |
| com.baidu.brpc.server |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Interceptor> |
RpcClient.getInterceptors() |
| 构造器和说明 |
|---|
RpcClient(Endpoint endPoint,
RpcClientOptions options,
List<Interceptor> interceptors) |
RpcClient(List<Endpoint> endPoints,
RpcClientOptions options,
List<Interceptor> interceptors) |
RpcClient(String serviceUrl,
RpcClientOptions options,
List<Interceptor> interceptors)
parse naming service url, connect to servers
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractInterceptor |
class |
ClientTraceInterceptor
Interceptor for client side tracing.
|
class |
CurrentLimitInterceptor
Rpc server current limit interceptor
Specific current limiting algorithm leaves to the
CurrentLimiter |
class |
LoadBalanceInterceptor
retry + load balance + rpc.
|
class |
ServerInvokeInterceptor |
class |
ServerPushInterceptor
retry + load balance + rpc.
|
class |
ServerTraceInterceptor
Interceptor for server side tracing.
|
| 构造器和说明 |
|---|
DefaultInterceptorChain(List<Interceptor> interceptors) |
| 构造器和说明 |
|---|
RpcServer(int port,
RpcServerOptions options,
List<Interceptor> interceptors) |
RpcServer(String host,
int port,
RpcServerOptions options,
List<Interceptor> interceptors) |
Copyright © 2019 Baidu, Inc.. All rights reserved.