| Constructor and Description |
|---|
PriorityHttpConnectionPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the pool
|
protected abstract void |
connect(Handler<org.vertx.java.core.http.impl.ClientConnection> connectHandler,
Handler<java.lang.Throwable> connectErrorHandler,
DefaultContext context)
Implement this method in a sub-class to implement the actual connection creation for the specific type of connection
|
void |
connectionClosed()
Inform the pool that the connection has been closed externally.
|
void |
getConnection(Handler<org.vertx.java.core.http.impl.ClientConnection> handler,
Handler<java.lang.Throwable> connectExceptionHandler,
DefaultContext context) |
int |
getMaxPoolSize()
Returns the maximum number of connections in the pool
|
void |
report() |
void |
returnConnection(org.vertx.java.core.http.impl.ClientConnection conn)
Return a connection to the pool so it can be used by others.
|
void |
setMaxPoolSize(int maxConnections)
Set the maximum pool size to the value specified by
maxConnections |
public void setMaxPoolSize(int maxConnections)
maxConnections
The client will maintain up to maxConnections HTTP connections in an internal pool
setMaxPoolSize in interface HttpPoolpublic int getMaxPoolSize()
getMaxPoolSize in interface HttpPoolpublic void report()
public void getConnection(Handler<org.vertx.java.core.http.impl.ClientConnection> handler, Handler<java.lang.Throwable> connectExceptionHandler, DefaultContext context)
getConnection in interface HttpPoolpublic void connectionClosed()
connectionClosed in interface HttpPoolpublic void returnConnection(org.vertx.java.core.http.impl.ClientConnection conn)
returnConnection in interface HttpPoolprotected abstract void connect(Handler<org.vertx.java.core.http.impl.ClientConnection> connectHandler, Handler<java.lang.Throwable> connectErrorHandler, DefaultContext context)