public class OutgoingConnectionsRegistry
extends Object
Constructor and Description |
---|
OutgoingConnectionsRegistry() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxConnectionsToHost() |
void |
openConnection(java.net.InetAddress address) |
void |
releaseConnection(java.net.InetAddress address) |
void |
setMaxConnectionsToHost(int maxConnectionsToHost)
Sets the maximum count of simultaneous connections to a single host.
|
public void openConnection(java.net.InetAddress address) throws PostponeException
PostponeException
public void releaseConnection(java.net.InetAddress address)
public int getMaxConnectionsToHost()
public void setMaxConnectionsToHost(int maxConnectionsToHost)
maxConnectionsToHost
- 0 means no limit