Interface Connection


  • public interface Connection
    A Connection represents some kind of channel to a (possibly different) process. Here we only need the capability of closing the connection. Any connection must also define hashCode and equals properly so that it can be used in a map. It is also recommended that toString() be defined to return a useful summary of the connection (e.g. address information).
    • Method Detail

      • close

        void close()
            throws java.io.IOException
        Throws:
        java.io.IOException