org.apache.hc.client5.http.impl.nio

## Class MultihomeConnectionInitiator

- java.lang.Object
- - org.apache.hc.client5.http.impl.nio.MultihomeConnectionInitiator

- All Implemented Interfaces:
    ConnectionInitiator

      @Contract(threading=SAFE_CONDITIONAL)
      public final class MultihomeConnectionInitiator
      extends Object
      implements ConnectionInitiator

  Multi-home DNS aware implementation of `ConnectionInitiator`.
  Since:
    5.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MultihomeConnectionInitiator(ConnectionInitiator connectionInitiator, DnsResolver dnsResolver)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Future<IOSession>` | `connect(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout connectTimeout, Object attachment, FutureCallback<IOSession> callback)`
    `Future<IOSession>` | `connect(NamedEndpoint remoteEndpoint, SocketAddress localAddress, Timeout connectTimeout, Object attachment, FutureCallback<IOSession> callback)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MultihomeConnectionInitiator

          public MultihomeConnectionInitiator(ConnectionInitiator connectionInitiator,
                                              DnsResolver dnsResolver)

  - ### Method Detail

    - #### connect

          public Future<IOSession> connect(NamedEndpoint remoteEndpoint,
                                           SocketAddress remoteAddress,
                                           SocketAddress localAddress,
                                           Timeout connectTimeout,
                                           Object attachment,
                                           FutureCallback<IOSession> callback)

      Specified by:
        `connect` in interface `ConnectionInitiator`

    - #### connect

          public Future<IOSession> connect(NamedEndpoint remoteEndpoint,
                                           SocketAddress localAddress,
                                           Timeout connectTimeout,
                                           Object attachment,
                                           FutureCallback<IOSession> callback)

Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.