Class TcpClientConnectionFactorySpec

All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean<AbstractClientConnectionFactory>, InitializingBean, Lifecycle, Phased, SmartLifecycle

Since:
5.0
Author:
Gary Russell, Artem Bilan
  • Constructor Details

    • TcpClientConnectionFactorySpec

      protected TcpClientConnectionFactorySpec(String host, int port)
    • TcpClientConnectionFactorySpec

      protected TcpClientConnectionFactorySpec(String host, int port, boolean nio)
  • Method Details

    • connectTimeout

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