Class OutgoingConnectionsRegistry
- Object
-
- mireka.transmission.immediate.host.OutgoingConnectionsRegistry
-
public class OutgoingConnectionsRegistry extends ObjectOutgoingConnectionsRegistry can tell if too many connections are open to a specific host at the moment.
-
-
Constructor Summary
Constructors Constructor Description OutgoingConnectionsRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxConnectionsToHost()voidopenConnection(java.net.InetAddress address)voidreleaseConnection(java.net.InetAddress address)voidsetMaxConnectionsToHost(int maxConnectionsToHost)Sets the maximum count of simultaneous connections to a single host.
-
-
-
Method Detail
-
openConnection
public void openConnection(java.net.InetAddress address) throws PostponeException- Throws:
PostponeException
-
releaseConnection
public void releaseConnection(java.net.InetAddress address)
-
getMaxConnectionsToHost
public int getMaxConnectionsToHost()
- Category:
- GETSET
-
setMaxConnectionsToHost
public void setMaxConnectionsToHost(int maxConnectionsToHost)
Sets the maximum count of simultaneous connections to a single host.- Parameters:
maxConnectionsToHost- 0 means no limit
-
-