Class TcpConnectionFactoryFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory>
org.springframework.integration.ip.config.TcpConnectionFactoryFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<AbstractConnectionFactory>,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationEventPublisherAware,org.springframework.context.Lifecycle
public class TcpConnectionFactoryFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory>
implements org.springframework.context.Lifecycle, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.ApplicationContextAware
Instantiates a TcpN(et|io)(Server|Client)ConnectionFactory, depending
on type and using-nio attributes.
- Since:
- 2.0.5
-
Field Summary
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractConnectionFactoryClass<?>booleanvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) voidsetApplySequence(boolean applySequence) voidsetBacklog(int backlog) voidsetBeanName(String name) voidsetConnectTimeout(int connectTimeout) voidsetDeserializer(org.springframework.core.serializer.Deserializer<?> deserializer) voidvoidsetInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain) voidsetLocalAddress(String localAddress) voidsetLookupHost(boolean lookupHost) voidsetMapper(TcpMessageMapper mapper) voidsetNetConnectionSupport(TcpNetConnectionSupport tcpNetSupport) voidsetNioConnectionSupport(TcpNioConnectionSupport tcpNioSupport) voidsetPort(int port) voidsetReadDelay(long readDelay) voidsetSerializer(org.springframework.core.serializer.Serializer<?> serializer) voidsetSingleUse(boolean singleUse) voidsetSocketFactorySupport(TcpSocketFactorySupport tcpSocketFactorySupport) voidsetSocketSupport(TcpSocketSupport tcpSocketSupport) voidsetSoKeepAlive(boolean soKeepAlive) voidsetSoLinger(int soLinger) voidsetSoReceiveBufferSize(int soReceiveBufferSize) voidsetSoSendBufferSize(int soSendBufferSize) voidsetSoTcpNoDelay(boolean soTcpNoDelay) voidsetSoTimeout(int soTimeout) voidsetSoTrafficClass(int soTrafficClass) voidsetSslContextSupport(TcpSSLContextSupport sslContextSupport) voidsetSslHandshakeTimeout(Integer sslHandshakeTimeout) Set the SSL handshake timeout (only used with SSL and NIO).voidsetTaskExecutor(Executor taskExecutor) final voidvoidsetUsingDirectBuffers(boolean usingDirectBuffers) voidsetUsingNio(boolean usingNio) voidstart()voidstop()Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
TcpConnectionFactoryFactoryBean
public TcpConnectionFactoryFactoryBean() -
TcpConnectionFactoryFactoryBean
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<AbstractConnectionFactory>- Specified by:
getObjectTypein classorg.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory>
-
createInstance
- Specified by:
createInstancein classorg.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory>
-
setPort
public void setPort(int port) - Parameters:
port- the port to set
-
setHost
- Parameters:
host- the host to set
-
setType
- Parameters:
type- the type to set
-
setLocalAddress
- Parameters:
localAddress- The local address.- See Also:
-
setSoTimeout
public void setSoTimeout(int soTimeout) - Parameters:
soTimeout- The timeout.- See Also:
-
setSoReceiveBufferSize
public void setSoReceiveBufferSize(int soReceiveBufferSize) - Parameters:
soReceiveBufferSize- The receive buffer size.- See Also:
-
setSoSendBufferSize
public void setSoSendBufferSize(int soSendBufferSize) - Parameters:
soSendBufferSize- The send buffer size.- See Also:
-
setSoTcpNoDelay
public void setSoTcpNoDelay(boolean soTcpNoDelay) - Parameters:
soTcpNoDelay- The TCP no delay to set.- See Also:
-
setSoLinger
public void setSoLinger(int soLinger) - Parameters:
soLinger- The SO Linger to set.- See Also:
-
setSoKeepAlive
public void setSoKeepAlive(boolean soKeepAlive) - Parameters:
soKeepAlive- The SO keepalive to set.- See Also:
-
setSoTrafficClass
public void setSoTrafficClass(int soTrafficClass) - Parameters:
soTrafficClass- The SO traffic class to set.- See Also:
-
setUsingNio
public void setUsingNio(boolean usingNio) - Parameters:
usingNio- the usingNio to set
-
setUsingDirectBuffers
public void setUsingDirectBuffers(boolean usingDirectBuffers) - Parameters:
usingDirectBuffers- the usingDirectBuffers to set.- See Also:
-
setTaskExecutor
- Parameters:
taskExecutor- The task executor.- See Also:
-
setDeserializer
public void setDeserializer(org.springframework.core.serializer.Deserializer<?> deserializer) - Parameters:
deserializer- The deserializer.- See Also:
-
setSerializer
public void setSerializer(org.springframework.core.serializer.Serializer<?> serializer) - Parameters:
serializer- The serializer.- See Also:
-
setMapper
- Parameters:
mapper- The mapper.- See Also:
-
setSingleUse
public void setSingleUse(boolean singleUse) - Parameters:
singleUse- The singleUse to set.- See Also:
-
setBacklog
public void setBacklog(int backlog) - Parameters:
backlog- The backlog.- See Also:
-
setInterceptorFactoryChain
public void setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain) - Parameters:
interceptorFactoryChain- The interceptor factory chain.- See Also:
-
setLookupHost
public void setLookupHost(boolean lookupHost) - Parameters:
lookupHost- The lookupHost to set.- See Also:
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle- See Also:
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle- See Also:
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
setBeanName
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
setApplySequence
public void setApplySequence(boolean applySequence) - Parameters:
applySequence- the applySequence to set
-
setReadDelay
public void setReadDelay(long readDelay) -
setSslContextSupport
-
setSocketSupport
-
setNioConnectionSupport
-
setNetConnectionSupport
-
setSocketFactorySupport
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) - Specified by:
setApplicationEventPublisherin interfaceorg.springframework.context.ApplicationEventPublisherAware
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout) -
setSslHandshakeTimeout
Set the SSL handshake timeout (only used with SSL and NIO).- Parameters:
sslHandshakeTimeout- the timeout.- Since:
- 4.3.6
-