Interface ClientConnection

  • All Superinterfaces:
    AutoCloseable

    public interface ClientConnection
    extends AutoCloseable
    Client connection: abstracts away sending and receiving messages.
    • Method Detail

      • localAddress

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

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

        void close()
        Closes the connection.
        Specified by:
        close in interface AutoCloseable