public class HaRpcProxyFactoryBean extends RpcClientOptions implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.DisposableBean
FactoryBean for Ha PbRpc proxies.EPOLL_EVENT_GROUP, POLL_EVENT_GROUP| 构造器和说明 |
|---|
HaRpcProxyFactoryBean() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
Object |
getObject() |
Class |
getObjectType() |
Class |
getServiceInterface()
Gets the service interface.
|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
boolean |
isLookupStubOnStartup()
Checks if is lookup stub on startup.
|
boolean |
isSingleton() |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
Sets the exception handler.
|
void |
setFailOverInterceptor(SocketFailOverInterceptor failOverInterceptor)
Sets the fail over interceptor.
|
void |
setHeartBeatInterval(long heartBeatInterval)
Sets the heart beat interval.
|
void |
setInterceptor(InvokerInterceptor interceptor)
Sets the interceptor.
|
void |
setLookupStubOnStartup(boolean lookupStubOnStartup)
Sets the lookup stub on startup.
|
void |
setNamingService(NamingService namingService)
Sets the naming service.
|
void |
setNamingServiceLoadBalanceStrategyFactory(NamingServiceLoadBalanceStrategyFactory namingServiceLoadBalanceStrategyFactory)
Sets the naming service load balance strategy factory.
|
void |
setServiceInterface(Class serviceInterface)
Sets the service interface.
|
void |
setStrategyInterceptor(StrategyInterceptor strategyInterceptor)
Sets the strategy interceptor.
|
copyFrom, getChunkPackageTimeout, getChunkSize, getConnectTimeout, getIdleTimeout, getIoEventGroupType, getMaxIdleSize, getMaxSize, getMaxTotal, getMaxWait, getMinEvictableIdleTime, getMinIdleSize, getOnceTalkTimeout, getReceiveBufferSize, getSendBufferSize, getTcpNoDelay, getThreadPoolSize, getWorkGroupThreadSize, isIncludeRemoteServerInfoOnError, isInnerResuePool, isJmxEnabled, isKeepAlive, isLifo, isReuseAddress, isShareChannelPool, isShareThreadPoolUnderEachProxy, isShortConnection, isTestOnBorrow, isTestOnReturn, setChunkPackageTimeout, setChunkSize, setConnectTimeout, setIdleTimeout, setIncludeRemoteServerInfoOnError, setInnerResuePool, setIoEventGroupType, setJmxEnabled, setKeepAlive, setLifo, setMaxIdleSize, setMaxSize, setMaxTotoal, setMaxWait, setMinEvictableIdleTime, setMinIdleSize, setOnceTalkTimeout, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setShareChannelPool, setShareThreadPoolUnderEachProxy, setShortConnection, setTcpNoDelay, setTestOnBorrow, setTestOnReturn, setThreadPoolSize, setWorkGroupThreadSizepublic void setHeartBeatInterval(long heartBeatInterval)
heartBeatInterval - the new heart beat intervalpublic void setStrategyInterceptor(StrategyInterceptor strategyInterceptor)
strategyInterceptor - the new strategy interceptorpublic void setExceptionHandler(ExceptionHandler exceptionHandler)
exceptionHandler - the new exception handlerpublic void setInterceptor(InvokerInterceptor interceptor)
interceptor - the new interceptorpublic boolean isLookupStubOnStartup()
public void setLookupStubOnStartup(boolean lookupStubOnStartup)
lookupStubOnStartup - the new lookup stub on startuppublic void setNamingService(NamingService namingService)
namingService - the new naming servicepublic void setServiceInterface(Class serviceInterface)
serviceInterface - the new service interfacepublic Class getServiceInterface()
public Object getObject() throws Exception
getObject 在接口中 org.springframework.beans.factory.FactoryBeanExceptionpublic Class getObjectType()
getObjectType 在接口中 org.springframework.beans.factory.FactoryBeanpublic boolean isSingleton()
isSingleton 在接口中 org.springframework.beans.factory.FactoryBeanpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionpublic Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke 在接口中 org.aopalliance.intercept.MethodInterceptorThrowablepublic void destroy()
throws Exception
destroy 在接口中 org.springframework.beans.factory.DisposableBeanExceptionpublic void setNamingServiceLoadBalanceStrategyFactory(NamingServiceLoadBalanceStrategyFactory namingServiceLoadBalanceStrategyFactory)
namingServiceLoadBalanceStrategyFactory - the new naming service load balance strategy factorypublic void setFailOverInterceptor(SocketFailOverInterceptor failOverInterceptor)
failOverInterceptor - the new fail over interceptorCopyright © 2022 Baidu, Inc.. All rights reserved.