Class TcpClientConnectionFactorySpec<S extends TcpClientConnectionFactorySpec<S,C>,C extends AbstractClientConnectionFactory>

Type Parameters:
S - the target TcpServerConnectionFactorySpec implementation type.
C - the target AbstractServerConnectionFactory 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
  • Constructor Details

    • TcpClientConnectionFactorySpec

      protected TcpClientConnectionFactorySpec(C cf)
      Create an instance.
      Parameters:
      cf - the connection factory.
      Since:
      6.0.3
  • Method Details

    • connectTimeout

      public S connectTimeout(int connectTimeout)
      Set the connection timeout in seconds. Defaults to 60.
      Parameters:
      connectTimeout - the timeout.
      Returns:
      the spec.
      Since:
      5.2