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
    • TcpClientConnectionFactorySpec

      @Deprecated protected TcpClientConnectionFactorySpec(String host, int port)
      Deprecated.
      since 6.0.3; use a subclass.
      Create an instance.
      Parameters:
      host - the host.
      port - the port.
    • TcpClientConnectionFactorySpec

      @Deprecated protected TcpClientConnectionFactorySpec(String host, int port, boolean nio)
      Deprecated.
      since 6.0.3; use a subclass.
      Create an instance.
      Parameters:
      host - the host.
      port - the port.
      nio - true for NIO.
  • 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