public class SocketConnectionFactory extends Object implements ConnectionFactory
Modifier and Type | Method and Description |
---|---|
Connection |
createConnection(String host,
int port) |
static SocketConnectionFactory |
getInstance() |
public static SocketConnectionFactory getInstance()
public Connection createConnection(String host, int port) throws IOException
createConnection
in interface ConnectionFactory
IOException