public class RpcProxyFactoryBean extends RpcClientOptions implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.DisposableBean
FactoryBean for PbRpc proxies.EPOLL_EVENT_GROUP, POLL_EVENT_GROUP| 构造器和说明 |
|---|
RpcProxyFactoryBean() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
String |
getHost()
Gets the host.
|
Object |
getObject() |
Class |
getObjectType() |
int |
getPort()
Gets the port.
|
Object |
getProxyBean()
Gets the proxy bean.
|
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 |
setHost(String host)
Sets the host.
|
void |
setInterceptor(InvokerInterceptor interceptor)
Sets the interceptor.
|
void |
setLookupStubOnStartup(boolean lookupStubOnStartup)
Sets the lookup stub on startup.
|
void |
setPort(int port)
Sets the port.
|
void |
setServiceInterface(Class serviceInterface)
Sets the service interface.
|
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 setInterceptor(InvokerInterceptor interceptor)
interceptor - the new interceptorpublic boolean isLookupStubOnStartup()
public void setLookupStubOnStartup(boolean lookupStubOnStartup)
lookupStubOnStartup - the new lookup stub on startuppublic String getHost()
public void setHost(String host)
host - the new hostpublic int getPort()
public void setPort(int port)
port - the new portpublic 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 getProxyBean()
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke 在接口中 org.aopalliance.intercept.MethodInterceptorThrowableCopyright © 2022 Baidu, Inc.. All rights reserved.