public class CommunicationClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BrpcChannel |
brpcChannel |
protected CommunicationOptions |
communicationOptions |
protected List<Interceptor> |
interceptors |
protected ServiceInstance |
serviceInstance |
| Constructor and Description |
|---|
CommunicationClient(ServiceInstance serviceInstance,
CommunicationOptions communicationOptions,
List<Interceptor> interceptors) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
void |
execute(Request request,
Response response) |
void |
executeChain(Request request,
Response response) |
int |
hashCode() |
io.netty.channel.Channel |
selectChannel() |
void |
stop() |
String |
toString() |
protected ServiceInstance serviceInstance
protected CommunicationOptions communicationOptions
protected BrpcChannel brpcChannel
protected List<Interceptor> interceptors
public CommunicationClient(ServiceInstance serviceInstance, CommunicationOptions communicationOptions, List<Interceptor> interceptors)
public void execute(Request request, Response response) throws RpcException
RpcExceptionpublic void executeChain(Request request, Response response) throws RpcException
RpcExceptionpublic io.netty.channel.Channel selectChannel()
public void stop()
Copyright © 2022 Baidu, Inc.. All rights reserved.