Class TcpClientConnectionFactorySpec<S extends TcpClientConnectionFactorySpec<S,C>,C extends AbstractClientConnectionFactory>
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,C>
org.springframework.integration.ip.dsl.AbstractConnectionFactorySpec<S,C>
org.springframework.integration.ip.dsl.TcpClientConnectionFactorySpec<S,C>
- Type Parameters:
S
- the targetTcpServerConnectionFactorySpec
implementation type.C
- the targetAbstractServerConnectionFactory
implementation type.
- All Implemented Interfaces:
DisposableBean
,FactoryBean<C>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
- Direct Known Subclasses:
TcpNetClientConnectionFactorySpec
,TcpNioClientConnectionFactorySpec
public abstract class TcpClientConnectionFactorySpec<S extends TcpClientConnectionFactorySpec<S,C>,C extends AbstractClientConnectionFactory>
extends AbstractConnectionFactorySpec<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 TypeMethodDescriptionconnectTimeout
(int connectTimeout) Set the connection timeout in seconds.Methods inherited from class org.springframework.integration.ip.dsl.AbstractConnectionFactorySpec
deserializer, id, interceptorFactoryChain, leaveOpen, lookupHost, mapper, nioHarvestInterval, readDelay, serializer, singleUseConnections, socketSupport, soKeepAlive, soLinger, soReceiveBufferSize, soSendBufferSize, soTcpNoDelay, soTimeout, soTrafficClass, 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
-
TcpClientConnectionFactorySpec
Create an instance.- Parameters:
cf
- the connection factory.- Since:
- 6.0.3
-
-
Method Details
-
connectTimeout
Set the connection timeout in seconds. Defaults to 60.- Parameters:
connectTimeout
- the timeout.- Returns:
- the spec.
- Since:
- 5.2
-