| 程序包 | 说明 |
|---|---|
| com.baidu.brpc.client.channel | |
| com.baidu.brpc.client.instance | |
| com.baidu.brpc.naming |
| 限定符和类型 | 字段和说明 |
|---|---|
protected ServiceInstance |
AbstractBrpcChannel.serviceInstance |
| 限定符和类型 | 方法和说明 |
|---|---|
ServiceInstance |
BrpcChannel.getServiceInstance() |
ServiceInstance |
AbstractBrpcChannel.getServiceInstance() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BrpcChannel |
BrpcChannelFactory.createChannel(ServiceInstance instance,
RpcClient rpcClient) |
| 构造器和说明 |
|---|
AbstractBrpcChannel(ServiceInstance serviceInstance,
io.netty.bootstrap.Bootstrap bootstrap,
Protocol protocol,
RpcClient rpcClient) |
BrpcPooledChannel(ServiceInstance serviceInstance,
RpcClient rpcClient) |
BrpcShortChannel(ServiceInstance instance,
RpcClient rpcClient) |
BrpcSingleChannel(ServiceInstance serviceInstance,
RpcClient rpcClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
ConcurrentMap<ServiceInstance,BrpcChannel> |
EnhancedInstanceProcessor.getInstanceChannelMap() |
ConcurrentMap<ServiceInstance,BrpcChannel> |
BasicInstanceProcessor.getInstanceChannelMap() |
ConcurrentMap<ServiceInstance,BrpcChannel> |
InstanceProcessor.getInstanceChannelMap() |
CopyOnWriteArraySet<ServiceInstance> |
EnhancedInstanceProcessor.getInstances() |
CopyOnWriteArraySet<ServiceInstance> |
BasicInstanceProcessor.getInstances() |
CopyOnWriteArraySet<ServiceInstance> |
InstanceProcessor.getInstances() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
EnhancedInstanceProcessor.addInstance(ServiceInstance instance) |
void |
BasicInstanceProcessor.addInstance(ServiceInstance instance) |
void |
InstanceProcessor.addInstance(ServiceInstance instance) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
EnhancedInstanceProcessor.addInstances(Collection<ServiceInstance> addList) |
void |
BasicInstanceProcessor.addInstances(Collection<ServiceInstance> addList) |
void |
InstanceProcessor.addInstances(Collection<ServiceInstance> addList) |
void |
EnhancedInstanceProcessor.deleteInstances(Collection<ServiceInstance> deleteList) |
void |
BasicInstanceProcessor.deleteInstances(Collection<ServiceInstance> deleteList) |
void |
InstanceProcessor.deleteInstances(Collection<ServiceInstance> deleteList) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<ServiceInstance> |
ListNamingService.lookup(SubscribeInfo subscribeInfo) |
List<ServiceInstance> |
DnsNamingService.lookup(SubscribeInfo subscribeInfo) |
List<ServiceInstance> |
NamingService.lookup(SubscribeInfo subscribeInfo)
查询符合条件的已注册数据,与订阅的推模式相对应,这里为拉模式,只返回一次结果。
|
List<ServiceInstance> |
FileNamingService.lookup(SubscribeInfo subscribeInfo) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
NotifyListener.notify(Collection<ServiceInstance> addList,
Collection<ServiceInstance> deleteList)
当收到服务变更通知时触发。
|
void |
NotifyListener.notify(Collection<ServiceInstance> addList,
Collection<ServiceInstance> deleteList)
当收到服务变更通知时触发。
|
Copyright © 2019 Baidu, Inc.. All rights reserved.