public class BasicInstanceProcessor extends Object implements InstanceProcessor
| 构造器和说明 |
|---|
BasicInstanceProcessor(RpcClient rpcClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addInstance(ServiceInstance instance) |
void |
addInstances(Collection<ServiceInstance> addList) |
void |
deleteInstances(Collection<ServiceInstance> deleteList) |
CopyOnWriteArrayList<BrpcChannel> |
getHealthyInstanceChannels() |
ConcurrentMap<ServiceInstance,BrpcChannel> |
getInstanceChannelMap() |
CopyOnWriteArraySet<ServiceInstance> |
getInstances() |
CopyOnWriteArrayList<BrpcChannel> |
getUnHealthyInstanceChannels() |
void |
stop() |
public BasicInstanceProcessor(RpcClient rpcClient)
public void addInstance(ServiceInstance instance)
addInstance 在接口中 InstanceProcessorpublic void addInstances(Collection<ServiceInstance> addList)
addInstances 在接口中 InstanceProcessorpublic void deleteInstances(Collection<ServiceInstance> deleteList)
deleteInstances 在接口中 InstanceProcessorpublic CopyOnWriteArraySet<ServiceInstance> getInstances()
getInstances 在接口中 InstanceProcessorpublic CopyOnWriteArrayList<BrpcChannel> getHealthyInstanceChannels()
getHealthyInstanceChannels 在接口中 InstanceProcessorpublic CopyOnWriteArrayList<BrpcChannel> getUnHealthyInstanceChannels()
public ConcurrentMap<ServiceInstance,BrpcChannel> getInstanceChannelMap()
getInstanceChannelMap 在接口中 InstanceProcessorpublic void stop()
stop 在接口中 InstanceProcessorCopyright © 2019 Baidu, Inc.. All rights reserved.