public class SingleConnectionFactory extends Object implements ConnectionFactory
Constructor and Description |
---|
SingleConnectionFactory(InetAddress host,
int port) |
SingleConnectionFactory(InetSocketAddress sockAddr) |
SingleConnectionFactory(String descriptor) |
Modifier and Type | Method and Description |
---|---|
Socket |
getConnection()
Called when a connection is needed.
|
void |
releaseConnection(Socket socket)
Called when a connection is released (not needed anymore)
Note : it doesn't mean that the socket should be closed at all, but notifies that this connection is no more
needed for a particular request.
|
public SingleConnectionFactory(InetSocketAddress sockAddr)
public SingleConnectionFactory(InetAddress host, int port)
public SingleConnectionFactory(String descriptor)
public Socket getConnection()
ConnectionFactory
getConnection
in interface ConnectionFactory
public void releaseConnection(Socket socket)
ConnectionFactory
releaseConnection
in interface ConnectionFactory
Copyright © 2009-2012 Julien Rialland, and the jFastCGI project developpers.. All Rights Reserved.