org.sapia.ubik.net
Interface ConnectionFactory

All Known Implementing Classes:
NioRmiConnectionFactory, SocketConnectionFactory, SocketRmiConnectionFactory, UDPConnectionFactory

public interface ConnectionFactory

This interface specifies the behavior of a factory of Connection instances.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Method Summary
 Connection newConnection(java.lang.String host, int port)
          Returns a client Connection instance that connects to the server at the given host and port.
 

Method Detail

newConnection

Connection newConnection(java.lang.String host,
                         int port)
                         throws java.io.IOException
Returns a client Connection instance that connects to the server at the given host and port.

Parameters:
host - the host to connect to.
port - the port on which the server is listening at the given host.
Throws:
java.io.IOException - if the connection instance could not be created.


Copyright © 2010 Sapia OSS. All Rights Reserved.