Class TcpClientConnectionFactorySpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,C>
org.springframework.integration.ip.dsl.AbstractConnectionFactorySpec<TcpClientConnectionFactorySpec,AbstractClientConnectionFactory>
org.springframework.integration.ip.dsl.TcpClientConnectionFactorySpec
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<AbstractClientConnectionFactory>,org.springframework.beans.factory.InitializingBean,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class TcpClientConnectionFactorySpec extends AbstractConnectionFactorySpec<TcpClientConnectionFactorySpec,AbstractClientConnectionFactory>
- Since:
- 5.0
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedTcpClientConnectionFactorySpec(java.lang.String host, int port)protectedTcpClientConnectionFactorySpec(java.lang.String host, int port, boolean nio) -
Method Summary
Modifier and Type Method Description TcpClientConnectionFactorySpecconnectTimeout(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, soKeepAlive, soLinger, soReceiveBufferSize, soSendBufferSize, soTcpNoDelay, soTimeout, soTrafficClass, taskExecutor, tcpSocketSupportMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
-
Constructor Details
-
TcpClientConnectionFactorySpec
protected TcpClientConnectionFactorySpec(java.lang.String host, int port) -
TcpClientConnectionFactorySpec
protected TcpClientConnectionFactorySpec(java.lang.String host, int port, boolean nio)
-
-
Method Details
-
connectTimeout
Set the connection timeout in seconds. Defaults to 60.- Parameters:
connectTimeout- the timeout.- Returns:
- the spec.
- Since:
- 5.2
-