T - the generic typepublic class HaProtobufRpcProxyBean<T> extends HaProtobufRpcProxy<T>
HaProtobufRpcProxy to process extra parameters transportation.LOGGER| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.remoting.support.RemoteInvocationFactory |
getRemoteInvocationFactory()
Gets the remote invocation factory.
|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
protected ProtobufRpcProxy<T> |
onBuildProtobufRpcProxy(RpcClient rpcClient,
Class<T> interfaceClass)
On build protobuf rpc proxy.
|
void |
setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
Sets the remote invocation factory.
|
close, getNamingService, isLookupStubOnStartup, proxy, reInit, setInterceptor, setLookupStubOnStartupsetDelay, 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 interceptorpublic org.springframework.remoting.support.RemoteInvocationFactory getRemoteInvocationFactory()
public void setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
remoteInvocationFactory - the new remote invocation factoryprotected ProtobufRpcProxy<T> onBuildProtobufRpcProxy(RpcClient rpcClient, Class<T> interfaceClass)
HaProtobufRpcProxyonBuildProtobufRpcProxy 在类中 HaProtobufRpcProxy<T>rpcClient - the rpc clientinterfaceClass - the interface classCopyright © 2016 Baidu, Inc.. All rights reserved.