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 targetTcpServerConnectionFactorySpecimplementation type.C- the targetAbstractServerConnectionFactoryimplementation type.
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<C>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.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
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnectTimeout(int connectTimeout) Set the connection timeout in seconds.Methods inherited from class AbstractConnectionFactorySpec
deserializer, id, interceptorFactoryChain, leaveOpen, lookupHost, mapper, nioHarvestInterval, readDelay, serializer, singleUseConnections, socketSupport, soKeepAlive, soLinger, soReceiveBufferSize, soSendBufferSize, soTcpNoDelay, soTimeout, soTrafficClass, taskExecutorMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingletonMethods inherited from interface org.springframework.context.SmartLifecycle
isPauseable
-
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
-