public class TcpConnectionFactoryFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory> implements org.springframework.context.SmartLifecycle, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationEventPublisherAware
| Constructor and Description |
|---|
TcpConnectionFactoryFactoryBean() |
TcpConnectionFactoryFactoryBean(java.lang.String type) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractConnectionFactory |
createInstance() |
java.lang.Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setApplySequence(boolean applySequence) |
void |
setBacklog(int backlog) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setBeanName(java.lang.String name) |
void |
setDeserializer(org.springframework.core.serializer.Deserializer<?> deserializer) |
void |
setHost(java.lang.String host) |
void |
setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain) |
void |
setLocalAddress(java.lang.String localAddress) |
void |
setLookupHost(boolean lookupHost) |
void |
setMapper(TcpMessageMapper mapper) |
void |
setNioConnectionSupport(TcpNioConnectionSupport tcpNioSupport)
Rare property - not exposed through namespace
|
void |
setPort(int port) |
void |
setReadDelay(long readDelay) |
void |
setSerializer(org.springframework.core.serializer.Serializer<?> serializer) |
void |
setSingleUse(boolean singleUse) |
void |
setSocketFactorySupport(TcpSocketFactorySupport tcpSocketFactorySupport) |
void |
setSocketSupport(TcpSocketSupport tcpSocketSupport) |
void |
setSoKeepAlive(boolean soKeepAlive) |
void |
setSoLinger(int soLinger) |
void |
setSoReceiveBufferSize(int soReceiveBufferSize) |
void |
setSoSendBufferSize(int soSendBufferSize) |
void |
setSoTcpNoDelay(boolean soTcpNoDelay) |
void |
setSoTimeout(int soTimeout) |
void |
setSoTrafficClass(int soTrafficClass) |
void |
setSslContextSupport(TcpSSLContextSupport sslContextSupport) |
void |
setSslHandshakeTimeout(java.lang.Integer sslHandshakeTimeout)
Set the SSL handshake timeout (only used with SSL and NIO).
|
void |
setTaskExecutor(java.util.concurrent.Executor taskExecutor) |
void |
setType(java.lang.String type) |
void |
setUsingDirectBuffers(boolean usingDirectBuffers) |
void |
setUsingNio(boolean usingNio) |
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
public TcpConnectionFactoryFactoryBean()
public TcpConnectionFactoryFactoryBean(java.lang.String type)
public final void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwaresetBeanFactory in class org.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory>public java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<AbstractConnectionFactory>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory>protected AbstractConnectionFactory createInstance() throws java.lang.Exception
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory>java.lang.Exceptionpublic void setPort(int port)
port - the port to setpublic void setHost(java.lang.String host)
host - the host to setpublic final void setType(java.lang.String type)
type - the type to setpublic void setLocalAddress(java.lang.String localAddress)
localAddress - The local address.AbstractServerConnectionFactory.setLocalAddress(java.lang.String)public void setSoTimeout(int soTimeout)
soTimeout - The timeout.AbstractConnectionFactory.setSoTimeout(int)public void setSoReceiveBufferSize(int soReceiveBufferSize)
soReceiveBufferSize - The receive buffer size.AbstractConnectionFactory.setSoReceiveBufferSize(int)public void setSoSendBufferSize(int soSendBufferSize)
soSendBufferSize - The send buffer size.AbstractConnectionFactory.setSoSendBufferSize(int)public void setSoTcpNoDelay(boolean soTcpNoDelay)
soTcpNoDelay - The TCP no delay to set.AbstractConnectionFactory.setSoTcpNoDelay(boolean)public void setSoLinger(int soLinger)
soLinger - The SO Linger to set.AbstractConnectionFactory.setSoLinger(int)public void setSoKeepAlive(boolean soKeepAlive)
soKeepAlive - The SO keepalive to set.AbstractConnectionFactory.setSoKeepAlive(boolean)public void setSoTrafficClass(int soTrafficClass)
soTrafficClass - The SO traffic class to set.AbstractConnectionFactory.setSoTrafficClass(int)public void setUsingNio(boolean usingNio)
usingNio - the usingNio to setpublic void setUsingDirectBuffers(boolean usingDirectBuffers)
usingDirectBuffers - the usingDirectBuffers to set.TcpNioServerConnectionFactory.setUsingDirectBuffers(boolean)public void setTaskExecutor(java.util.concurrent.Executor taskExecutor)
taskExecutor - The task executor.AbstractConnectionFactory.setTaskExecutor(java.util.concurrent.Executor)public void setDeserializer(org.springframework.core.serializer.Deserializer<?> deserializer)
deserializer - The deserializer.AbstractConnectionFactory.setDeserializer(org.springframework.core.serializer.Deserializer)public void setSerializer(org.springframework.core.serializer.Serializer<?> serializer)
serializer - The serializer.AbstractConnectionFactory.setSerializer(org.springframework.core.serializer.Serializer)public void setMapper(TcpMessageMapper mapper)
mapper - The mapper.AbstractConnectionFactory.setMapper(TcpMessageMapper)public void setSingleUse(boolean singleUse)
singleUse - The singleUse to set.AbstractConnectionFactory.setSingleUse(boolean)public void setBacklog(int backlog)
backlog - The backlog.AbstractServerConnectionFactory.setBacklog(int)public void setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain)
interceptorFactoryChain - The interceptor factory chain.AbstractConnectionFactory.setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain)public void setLookupHost(boolean lookupHost)
lookupHost - The lookupHost to set.AbstractConnectionFactory.setLookupHost(boolean)public void start()
start in interface org.springframework.context.LifecycleAbstractConnectionFactory.start()public void stop()
stop in interface org.springframework.context.LifecycleAbstractConnectionFactory.stop()public int getPhase()
getPhase in interface org.springframework.context.PhasedAbstractConnectionFactory.getPhase()public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecycleAbstractConnectionFactory.isAutoStartup()public void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecyclecallback - The Runnable to invoke.AbstractConnectionFactory.stop(java.lang.Runnable)public boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setApplySequence(boolean applySequence)
applySequence - the applySequence to setpublic void setReadDelay(long readDelay)
public void setSslContextSupport(TcpSSLContextSupport sslContextSupport)
public void setSocketSupport(TcpSocketSupport tcpSocketSupport)
public void setNioConnectionSupport(TcpNioConnectionSupport tcpNioSupport)
tcpNioSupport - The tcpNioSupport to set.public void setSocketFactorySupport(TcpSocketFactorySupport tcpSocketFactorySupport)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic void setSslHandshakeTimeout(java.lang.Integer sslHandshakeTimeout)
sslHandshakeTimeout - the timeout.