public class HostConnections extends Object
Constructor and Description |
---|
HostConnections(String host,
int port,
int maxSize) |
Modifier and Type | Method and Description |
---|---|
void |
addConnection(org.apache.http.nio.NHttpClientConnection conn) |
boolean |
canHaveMoreConnections() |
void |
forget(org.apache.http.nio.NHttpClientConnection conn) |
org.apache.http.nio.NHttpClientConnection |
getConnection()
Get a connection for the host:port
|
String |
getHost() |
int |
getPort() |
void |
pendingConnectionFailed()
Keep track of the number of times connections to this host:port has failed
consecutively
|
void |
pendingConnectionSucceeded()
Indicates that a connection has been successfully established with a remote server
as notified by the session request call back.
|
void |
release(org.apache.http.nio.NHttpClientConnection conn) |
public HostConnections(String host, int port, int maxSize)
public org.apache.http.nio.NHttpClientConnection getConnection()
public void release(org.apache.http.nio.NHttpClientConnection conn)
public void forget(org.apache.http.nio.NHttpClientConnection conn)
public void addConnection(org.apache.http.nio.NHttpClientConnection conn)
public void pendingConnectionSucceeded()
public void pendingConnectionFailed()
public String getHost()
public int getPort()
public boolean canHaveMoreConnections()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.