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 target- TcpServerConnectionFactorySpecimplementation type.
- C- the target- AbstractServerConnectionFactoryimplementation 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 SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreate an instance.protectedTcpClientConnectionFactorySpec(String host, int port) Deprecated.since 6.0.3; use a subclass.protectedTcpClientConnectionFactorySpec(String host, int port, boolean nio) Deprecated.since 6.0.3; use a subclass.
- 
Method SummaryModifier and TypeMethodDescriptionconnectTimeout(int connectTimeout) Set the connection timeout in seconds.Methods inherited from class org.springframework.integration.ip.dsl.AbstractConnectionFactorySpecdeserializer, id, interceptorFactoryChain, leaveOpen, lookupHost, mapper, nioHarvestInterval, readDelay, serializer, singleUseConnections, socketSupport, soKeepAlive, soLinger, soReceiveBufferSize, soSendBufferSize, soTcpNoDelay, soTimeout, soTrafficClass, taskExecutor, tcpSocketSupportMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, get, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
TcpClientConnectionFactorySpecCreate an instance.- Parameters:
- cf- the connection factory.
- Since:
- 6.0.3
 
- 
TcpClientConnectionFactorySpecDeprecated.since 6.0.3; use a subclass.Create an instance.- Parameters:
- host- the host.
- port- the port.
 
- 
TcpClientConnectionFactorySpecDeprecated.since 6.0.3; use a subclass.Create an instance.- Parameters:
- host- the host.
- port- the port.
- nio- true for NIO.
 
 
- 
- 
Method Details- 
connectTimeoutSet the connection timeout in seconds. Defaults to 60.- Parameters:
- connectTimeout- the timeout.
- Returns:
- the spec.
- Since:
- 5.2
 
 
-