Interface IConnectionFactory


  • public interface IConnectionFactory
    Interface for all connection factory. Primarily act as the abstraction layer for different kind of connection factory.
    Version:
    $Revision$, $Date$
    • Method Detail

      • create

        IConnection create​(java.lang.String host,
                           int port)
                    throws java.io.IOException,
                           java.net.UnknownHostException
        Creates connection using the host and port
        Parameters:
        host - The host to connect to
        port - The port to connect to
        Returns:
        The created connection
        Throws:
        java.io.IOException - On an IO Error
        java.net.UnknownHostException - If the host can't be resolved