Class ConnectionDescription


  • public class ConnectionDescription
    extends Object
    • Constructor Detail

      • ConnectionDescription

        public ConnectionDescription​(InetSocketAddress locAddr,
                                     InetSocketAddress rmtAddr,
                                     String protocol,
                                     UUID srvNodeId)
        Parameters:
        locAddr - Local connection address.
        rmtAddr - Remote connection address.
        protocol - String representation of a connection protocol details.
        srvNodeId - Server node id.
    • Method Detail

      • localAddress

        @Nullable
        public @Nullable InetSocketAddress localAddress()
        Gets local address of this connection.
        Returns:
        Local network address or null if non-socket communication is used.
      • remoteAddress

        @Nullable
        public @Nullable InetSocketAddress remoteAddress()
        Gets address of remote peer of this connection.
        Returns:
        Address of remote peer or null if non-socket communication is used.
      • serverNodeId

        @Nullable
        public @Nullable UUID serverNodeId()
        Returns:
        Server node id.
      • protocol

        @Nullable
        public @Nullable String protocol()
        Returns:
        String representation of connection protocol.