|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.transport.passthru.connections.HostConnections
public class HostConnections
This stores connections for a particular host + port.
| Constructor Summary | |
|---|---|
HostConnections(org.apache.http.conn.routing.HttpRoute route,
int maxSize)
|
|
| Method Summary | |
|---|---|
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 |
org.apache.http.conn.routing.HttpRoute |
getRoute()
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HostConnections(org.apache.http.conn.routing.HttpRoute route,
int maxSize)
| Method Detail |
|---|
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 org.apache.http.conn.routing.HttpRoute getRoute()
public boolean canHaveMoreConnections()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||