Class TcpConnectionFactoryFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory>
org.springframework.integration.ip.config.TcpConnectionFactoryFactoryBean
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,BeanNameAware,DisposableBean,FactoryBean<AbstractConnectionFactory>,InitializingBean,ApplicationContextAware,ApplicationEventPublisherAware,Lifecycle
public class TcpConnectionFactoryFactoryBean
extends AbstractFactoryBean<AbstractConnectionFactory>
implements Lifecycle, BeanNameAware, ApplicationEventPublisherAware, ApplicationContextAware
Instantiates a TcpN(et|io)(Server|Client)ConnectionFactory, depending
on type and using-nio attributes.
- Since:
- 2.0.5
- Author:
- Gary Russell
-
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(ApplicationContext applicationContext) voidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) voidsetApplySequence(boolean applySequence) voidsetBacklog(int backlog) voidsetBeanName(String name) voidsetConnectTimeout(int connectTimeout) voidsetDeserializer(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(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
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<AbstractConnectionFactory>- Specified by:
getObjectTypein classAbstractFactoryBean<AbstractConnectionFactory>
-
createInstance
- Specified by:
createInstancein classAbstractFactoryBean<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
- Parameters:
deserializer- The deserializer.- See Also:
-
setSerializer
- 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
-
stop
-
isRunning
-
setBeanName
- Specified by:
setBeanNamein interfaceBeanNameAware
-
setApplySequence
public void setApplySequence(boolean applySequence) - Parameters:
applySequence- the applySequence to set
-
setReadDelay
public void setReadDelay(long readDelay) -
setSslContextSupport
-
setSocketSupport
-
setNioConnectionSupport
-
setNetConnectionSupport
-
setSocketFactorySupport
-
setApplicationEventPublisher
- Specified by:
setApplicationEventPublisherin interfaceApplicationEventPublisherAware
-
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
-