public interface ConnectionFactory
A Factory to create Connection instances for Connectors.
A Connection factory is responsible for instantiating and configuring a Connection instance
to handle an EndPoint accepted by a Connector.
A ConnectionFactory has a protocol name that represents the protocol of the Connections created. Example of protocol names include:
| Modifier and Type | Method and Description |
|---|---|
String |
getProtocol() |
Connection |
newConnection(Connector connector,
EndPoint endPoint)
Creates a new
Connection with the given parameters |
String getProtocol()
Connection newConnection(Connector connector, EndPoint endPoint)
Creates a new Connection with the given parameters
connector - The Connector creating this connectionendPoint - the EndPoint associated with the connectionConnectionCopyright © 1995-2015 Webtide. All Rights Reserved.