public class HaRpcProxyFactoryBean extends com.baidu.jprotobuf.pbrpc.transport.RpcClientOptions implements org.springframework.beans.factory.FactoryBean<Object>, org.springframework.beans.factory.InitializingBean, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.DisposableBean
FactoryBean for Ha PbRpc proxies| 构造器和说明 |
|---|
HaRpcProxyFactoryBean() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
Object |
getObject() |
Class |
getObjectType() |
Class |
getServiceInterface()
Return the interface of the service to access.
|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
boolean |
isLookupStubOnStartup()
get the lookupStubOnStartup
|
boolean |
isSingleton() |
void |
setFailOverInterceptor(SocketFailOverInterceptor failOverInterceptor)
set failOverInterceptor value to failOverInterceptor
|
void |
setLookupStubOnStartup(boolean lookupStubOnStartup)
set lookupStubOnStartup value to lookupStubOnStartup
|
void |
setNamingService(NamingService namingService)
set namingService value to namingService
|
void |
setNamingServiceLoadBalanceStrategyFactory(NamingServiceLoadBalanceStrategyFactory namingServiceLoadBalanceStrategyFactory)
set namingServiceLoadBalanceStrategyFactory value to namingServiceLoadBalanceStrategyFactory
|
protected void |
setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
set remoteInvocationFactory value to remoteInvocationFactory
|
void |
setServiceInterface(Class serviceInterface)
Set the interface of the service to access.
|
copyFrom, getChunkPackageTimeout, getChunkSize, getConnectTimeout, getIdleTimeout, getMaxIdleSize, getMaxWait, getMinEvictableIdleTime, getMinIdleSize, getOnceTalkTimeout, getReceiveBufferSize, getSendBufferSize, getTcpNoDelay, getThreadPoolSize, isJmxEnabled, isKeepAlive, isReuseAddress, isShareThreadPoolUnderEachProxy, isShortConnection, isTestOnBorrow, isTestOnReturn, setChunkPackageTimeout, setChunkSize, setConnectTimeout, setIdleTimeout, setJmxEnabled, setKeepAlive, setMaxIdleSize, setMaxWait, setMinEvictableIdleTime, setMinIdleSize, setOnceTalkTimeout, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setShareThreadPoolUnderEachProxy, setShortConnection, setTcpNoDelay, setTestOnBorrow, setTestOnReturn, setThreadPoolSizepublic boolean isLookupStubOnStartup()
public void setLookupStubOnStartup(boolean lookupStubOnStartup)
lookupStubOnStartup - the lookupStubOnStartup to setpublic void setNamingService(NamingService namingService)
namingService - the namingService to setpublic void setServiceInterface(Class serviceInterface)
Typically required to be able to create a suitable service proxy, but can also be optional if the lookup returns a typed proxy.
public Class getServiceInterface()
public Class getObjectType()
getObjectType 在接口中 org.springframework.beans.factory.FactoryBean<Object>public boolean isSingleton()
isSingleton 在接口中 org.springframework.beans.factory.FactoryBean<Object>public void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionpublic Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke 在接口中 org.aopalliance.intercept.MethodInterceptorThrowableprotected void setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
remoteInvocationFactory - the remoteInvocationFactory to setpublic void destroy()
throws Exception
destroy 在接口中 org.springframework.beans.factory.DisposableBeanExceptionpublic void setNamingServiceLoadBalanceStrategyFactory(NamingServiceLoadBalanceStrategyFactory namingServiceLoadBalanceStrategyFactory)
namingServiceLoadBalanceStrategyFactory - the namingServiceLoadBalanceStrategyFactory to setpublic void setFailOverInterceptor(SocketFailOverInterceptor failOverInterceptor)
failOverInterceptor - the failOverInterceptor to setCopyright © 2015 Baidu, Inc.. All rights reserved.