Class AbstractConnectionFactorySpec<S extends AbstractConnectionFactorySpec<S,C>,C extends AbstractConnectionFactory>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,C>
org.springframework.integration.ip.dsl.AbstractConnectionFactorySpec<S,C>
- Type Parameters:
S
- the targetAbstractConnectionFactorySpec
implementation type.C
- the targetAbstractConnectionFactory
implementation type.
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<C>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
- Direct Known Subclasses:
TcpClientConnectionFactorySpec
,TcpServerConnectionFactorySpec
public abstract class AbstractConnectionFactorySpec<S extends AbstractConnectionFactorySpec<S,C>,C extends AbstractConnectionFactory> extends IntegrationComponentSpec<S,C>
- Since:
- 5.0
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractConnectionFactorySpec(C connectionFactory)
-
Method Summary
Modifier and Type Method Description S
deserializer(Deserializer<?> deserializer)
S
id(String id)
Configure the component identifier.S
interceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain)
S
leaveOpen(boolean leaveOpen)
S
lookupHost(boolean lookupHost)
S
mapper(TcpMessageMapper mapper)
S
nioHarvestInterval(int nioHarvestInterval)
S
readDelay(long readDelay)
S
serializer(Serializer<?> serializer)
S
singleUseConnections(boolean single)
This connection factory uses a new connection for each operation.S
soKeepAlive(boolean soKeepAlive)
S
soLinger(int soLinger)
S
soReceiveBufferSize(int soReceiveBufferSize)
S
soSendBufferSize(int soSendBufferSize)
S
soTcpNoDelay(boolean soTcpNoDelay)
S
soTimeout(int soTimeout)
S
soTrafficClass(int soTrafficClass)
S
taskExecutor(Executor taskExecutor)
S
tcpSocketSupport(TcpSocketSupport tcpSocketSupport)
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
Method Details
-
id
Description copied from class:IntegrationComponentSpec
Configure the component identifier. Used as thebeanName
to register the bean in the application context for this component.- Overrides:
id
in classIntegrationComponentSpec<S extends AbstractConnectionFactorySpec<S,C>,C extends AbstractConnectionFactory>
- Parameters:
id
- the id.- Returns:
- the spec.
-
soTimeout
- Parameters:
soTimeout
- the timeout socket option.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setSoTimeout(int)
-
soReceiveBufferSize
- Parameters:
soReceiveBufferSize
- the receive buffer size socket option.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setSoReceiveBufferSize(int)
-
soSendBufferSize
- Parameters:
soSendBufferSize
- the send buffer size socket option.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setSoSendBufferSize(int)
-
soTcpNoDelay
- Parameters:
soTcpNoDelay
- the TCP no delay socket option (disable Nagle's algorithm).- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setSoTcpNoDelay(boolean)
-
soLinger
- Parameters:
soLinger
- the linger socket option.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setSoLinger(int)
-
soKeepAlive
- Parameters:
soKeepAlive
- the keep alive socket option.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setSoKeepAlive(boolean)
-
soTrafficClass
- Parameters:
soTrafficClass
- the traffic class socket option.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setSoTrafficClass(int)
-
taskExecutor
- Parameters:
taskExecutor
- the task executor.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setTaskExecutor(Executor)
-
deserializer
- Parameters:
deserializer
- the deserializer.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setDeserializer(Deserializer)
-
serializer
- Parameters:
serializer
- the serializer.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setSerializer(Serializer)
-
mapper
- Parameters:
mapper
- the message mapper.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setMapper(TcpMessageMapper)
-
leaveOpen
- Parameters:
leaveOpen
- true to leave the socket open for additional messages.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setLeaveOpen(boolean)
-
interceptorFactoryChain
- Parameters:
interceptorFactoryChain
- the interceptor factory chain.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain)
-
lookupHost
- Parameters:
lookupHost
- true to reverse lookup the host.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setLookupHost(boolean)
-
nioHarvestInterval
- Parameters:
nioHarvestInterval
- the harvest interval when using NIO.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setNioHarvestInterval(int)
-
readDelay
- Parameters:
readDelay
- the read delay.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setReadDelay(long)
-
tcpSocketSupport
- Parameters:
tcpSocketSupport
- theTcpSocketSupport
.- Returns:
- the spec.
- See Also:
AbstractConnectionFactory.setTcpSocketSupport(TcpSocketSupport)
-
singleUseConnections
This connection factory uses a new connection for each operation.- Parameters:
single
- true for a new connection for each operation.- Returns:
- the spec.
- Since:
- 5.2
-