Interface ConnectionInfo

    • Method Detail

      • localAddress

        java.net.SocketAddress localAddress()
        The SocketAddress to which the associated connection is bound.
        Returns:
        The SocketAddress to which the associated connection is bound.
      • remoteAddress

        java.net.SocketAddress remoteAddress()
        The SocketAddress to which the associated connection is connected.
        Returns:
        The SocketAddress to which the associated connection is connected.
      • sslSession

        @Nullable
        javax.net.ssl.SSLSession sslSession()
        Get the SSLSession for this connection.
        Returns:
        The SSLSession if SSL/TLS is enabled, or null otherwise.
      • socketOption

        @Nullable
        <T> T socketOption​(java.net.SocketOption<T> option)
        Get the SocketOption value of type T for this ConnectionInfo.
        Type Parameters:
        T - the type of the SocketOption value.
        Parameters:
        option - SocketOption to get.
        Returns:
        the SocketOption value of type T for this ConnectionInfo or null if this SocketOption is not supported by this ConnectionInfo.
        See Also:
        StandardSocketOptions, ServiceTalkSocketOptions