Class AbstractConnectionFactorySpec<S extends AbstractConnectionFactorySpec<S,C>,C extends AbstractConnectionFactory>
java.lang.Object
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:
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
logger, PARSER, target
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserializer
(Deserializer<?> deserializer) Configure the component identifier.interceptorFactoryChain
(TcpConnectionInterceptorFactoryChain interceptorFactoryChain) leaveOpen
(boolean leaveOpen) lookupHost
(boolean lookupHost) mapper
(TcpMessageMapper mapper) nioHarvestInterval
(int nioHarvestInterval) readDelay
(long readDelay) serializer
(Serializer<?> serializer) singleUseConnections
(boolean single) This connection factory uses a new connection for each operation.socketSupport
(TcpSocketSupport tcpSocketSupport) soKeepAlive
(boolean soKeepAlive) soLinger
(int soLinger) soReceiveBufferSize
(int soReceiveBufferSize) soSendBufferSize
(int soSendBufferSize) soTcpNoDelay
(boolean soTcpNoDelay) soTimeout
(int soTimeout) soTrafficClass
(int soTrafficClass) taskExecutor
(Executor taskExecutor) Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
AbstractConnectionFactorySpec
-
-
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:
-
soReceiveBufferSize
- Parameters:
soReceiveBufferSize
- the receive buffer size socket option.- Returns:
- the spec.
- See Also:
-
soSendBufferSize
- Parameters:
soSendBufferSize
- the send buffer size socket option.- Returns:
- the spec.
- See Also:
-
soTcpNoDelay
- Parameters:
soTcpNoDelay
- the TCP no delay socket option (disable Nagle's algorithm).- Returns:
- the spec.
- See Also:
-
soLinger
- Parameters:
soLinger
- the linger socket option.- Returns:
- the spec.
- See Also:
-
soKeepAlive
- Parameters:
soKeepAlive
- the keep alive socket option.- Returns:
- the spec.
- See Also:
-
soTrafficClass
- Parameters:
soTrafficClass
- the traffic class socket option.- Returns:
- the spec.
- See Also:
-
taskExecutor
- Parameters:
taskExecutor
- the task executor.- Returns:
- the spec.
- See Also:
-
deserializer
- Parameters:
deserializer
- the deserializer.- Returns:
- the spec.
- See Also:
-
serializer
- Parameters:
serializer
- the serializer.- Returns:
- the spec.
- See Also:
-
mapper
- Parameters:
mapper
- the message mapper.- Returns:
- the spec.
- See Also:
-
leaveOpen
- Parameters:
leaveOpen
- true to leave the socket open for additional messages.- Returns:
- the spec.
- See Also:
-
interceptorFactoryChain
- Parameters:
interceptorFactoryChain
- the interceptor factory chain.- Returns:
- the spec.
- See Also:
-
lookupHost
- Parameters:
lookupHost
- true to reverse lookup the host.- Returns:
- the spec.
- See Also:
-
nioHarvestInterval
- Parameters:
nioHarvestInterval
- the harvest interval when using NIO.- Returns:
- the spec.
- See Also:
-
readDelay
- Parameters:
readDelay
- the read delay.- Returns:
- the spec.
- See Also:
-
socketSupport
- Parameters:
tcpSocketSupport
- theTcpSocketSupport
.- Returns:
- the spec.
- See Also:
-
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
-