Interface IConnectionFactory
-
public interface IConnectionFactoryInterface for all connection factory. Primarily act as the abstraction layer for different kind of connection factory.- Version:
- $Revision$, $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IConnectioncreate(java.lang.String host, int port)Creates connection using the host and port
-
-
-
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 toport- The port to connect to- Returns:
- The created connection
- Throws:
java.io.IOException- On an IO Errorjava.net.UnknownHostException- If the host can't be resolved
-
-