com.baidu.jprotobuf.pbrpc.spring
类 HaProtobufRpcProxyBean<T>

java.lang.Object
  继承者 com.baidu.jprotobuf.pbrpc.client.ha.NamingServiceChangeListener
      继承者 com.baidu.jprotobuf.pbrpc.client.ha.HaProtobufRpcProxy<T>
          继承者 com.baidu.jprotobuf.pbrpc.spring.HaProtobufRpcProxyBean<T>
所有已实现的接口:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class HaProtobufRpcProxyBean<T>
extends HaProtobufRpcProxy<T>

To enhance HaProtobufRpcProxy to process extra parameters transportation.

从以下版本开始:
2.17
作者:
xiemalin

字段摘要
 
从类 com.baidu.jprotobuf.pbrpc.client.ha.HaProtobufRpcProxy 继承的字段
LOGGER
 
构造方法摘要
HaProtobufRpcProxyBean(RpcClient rpcClient, Class<T> interfaceClass, NamingService namingService)
           
 
方法摘要
 org.springframework.remoting.support.RemoteInvocationFactory getRemoteInvocationFactory()
          get the remoteInvocationFactory
 Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
protected  ProtobufRpcProxy<T> onBuildProtobufRpcProxy(RpcClient rpcClient, Class<T> interfaceClass)
           
 void setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
          set remoteInvocationFactory value to remoteInvocationFactory
 
从类 com.baidu.jprotobuf.pbrpc.client.ha.HaProtobufRpcProxy 继承的方法
close, getNamingService, isLookupStubOnStartup, proxy, reInit, setLookupStubOnStartup
 
从类 com.baidu.jprotobuf.pbrpc.client.ha.NamingServiceChangeListener 继承的方法
setDelay, setPeriod, startUpdateNamingServiceTask
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

HaProtobufRpcProxyBean

public HaProtobufRpcProxyBean(RpcClient rpcClient,
                              Class<T> interfaceClass,
                              NamingService namingService)
参数:
rpcClient -
interfaceClass -
方法详细信息

getRemoteInvocationFactory

public org.springframework.remoting.support.RemoteInvocationFactory getRemoteInvocationFactory()
get the remoteInvocationFactory

返回:
the remoteInvocationFactory

setRemoteInvocationFactory

public void setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
set remoteInvocationFactory value to remoteInvocationFactory

参数:
remoteInvocationFactory - the remoteInvocationFactory to set

onBuildProtobufRpcProxy

protected ProtobufRpcProxy<T> onBuildProtobufRpcProxy(RpcClient rpcClient,
                                                      Class<T> interfaceClass)
覆盖:
类 HaProtobufRpcProxy<T> 中的 onBuildProtobufRpcProxy

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
              throws Throwable
指定者:
接口 org.aopalliance.intercept.MethodInterceptor 中的 invoke
覆盖:
类 HaProtobufRpcProxy<T> 中的 invoke
抛出:
Throwable


Copyright © 2015 Baidu, Inc.. All Rights Reserved.