| 程序包 | 说明 |
|---|---|
| com.baidu.brpc.client | |
| com.baidu.brpc.naming |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RpcClient.addEndPoints(Collection<EndPoint> addList) |
protected void |
RpcClient.deleteEndPoints(Collection<EndPoint> deleteList) |
void |
RpcClient.updateEndPoints(List<EndPoint> newEndPoints) |
| 构造器和说明 |
|---|
RpcClient(EndPoint endPoint) |
RpcClient(EndPoint endPoint,
RpcClientOptions options) |
| 构造器和说明 |
|---|
RpcClient(List<EndPoint> endPoints) |
RpcClient(List<EndPoint> endPoints,
RpcClientOptions option,
List<Interceptor> interceptors) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<EndPoint> |
FileNamingService.lookup(RegisterInfo registerInfo) |
List<EndPoint> |
ListNamingService.lookup(RegisterInfo registerInfo) |
List<EndPoint> |
DnsNamingService.lookup(RegisterInfo registerInfo) |
List<EndPoint> |
NamingService.lookup(RegisterInfo registerInfo)
查询符合条件的已注册数据,与订阅的推模式相对应,这里为拉模式,只返回一次结果。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
NotifyListener.notify(Collection<EndPoint> addList,
Collection<EndPoint> deleteList)
当收到服务变更通知时触发。
|
void |
NotifyListener.notify(Collection<EndPoint> addList,
Collection<EndPoint> deleteList)
当收到服务变更通知时触发。
|
Copyright © 2018 Baidu, Inc.. All rights reserved.