com.marklogic.xcc.spi

## Interface SingleHostAddress

-     public interface SingleHostAddress

  This interface should be implemented by `ConnectionProvider` implementations that make socket connections to a single host and port. The value returned by `getAddress()` will be used to reconstruct the connection `URI` when needed. Custom `ConnectionProvider` implementations that are not point-to-point oriented should not implement this interface.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.net.InetSocketAddress` | `getAddress()` The address to which connections are made.

- - ### Method Detail

    - #### getAddress

          java.net.InetSocketAddress getAddress()

      The address to which connections are made.
      Returns:
        An instance of `InetSocketAddress` that represents host/port to which connections are made.

Copyright © 2025 MarkLogic Corporation. All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com