T - the generic typepublic class HaProtobufRpcProxyBean<T> extends HaProtobufRpcProxy<T>
HaProtobufRpcProxy to process extra parameters transportation.exceptionHandler, interceptor| 构造器和说明 |
|---|
HaProtobufRpcProxyBean(RpcClient rpcClient,
Class<T> interfaceClass,
NamingService namingService)
Instantiates a new ha protobuf rpc proxy bean.
|
HaProtobufRpcProxyBean(RpcClient rpcClient,
Class<T> interfaceClass,
NamingService namingService,
NamingServiceLoadBalanceStrategyFactory loadBalanceStrategyFactory,
SocketFailOverInterceptor failOverInterceptor)
Instantiates a new ha protobuf rpc proxy bean.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
protected ProtobufRpcProxy<T> |
onBuildProtobufRpcProxy(RpcClient rpcClient,
Class<T> interfaceClass)
On build protobuf rpc proxy.
|
close, getNamingService, isLookupStubOnStartup, proxy, reInit, setExceptionHandler, setHeartBeatInterval, setInterceptor, setLookupStubOnStartup, setStrategyInterceptorsetDelay, setEnableNamingServiceCallback, setPeriod, startUpdateNamingServiceTaskpublic HaProtobufRpcProxyBean(RpcClient rpcClient, Class<T> interfaceClass, NamingService namingService)
rpcClient - the rpc clientinterfaceClass - the interface classnamingService - the naming servicepublic HaProtobufRpcProxyBean(RpcClient rpcClient, Class<T> interfaceClass, NamingService namingService, NamingServiceLoadBalanceStrategyFactory loadBalanceStrategyFactory, SocketFailOverInterceptor failOverInterceptor)
rpcClient - the rpc clientinterfaceClass - the interface classnamingService - the naming serviceloadBalanceStrategyFactory - the load balance strategy factoryfailOverInterceptor - the fail over interceptorprotected ProtobufRpcProxy<T> onBuildProtobufRpcProxy(RpcClient rpcClient, Class<T> interfaceClass)
HaProtobufRpcProxyonBuildProtobufRpcProxy 在类中 HaProtobufRpcProxy<T>rpcClient - the rpc clientinterfaceClass - the interface classCopyright © 2022 Baidu, Inc.. All rights reserved.