public class HttpConnectionPool extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
protected class |
HttpConnectionPool.ClientConnectionHolder |
static interface |
HttpConnectionPool.ConnectionHandle |
static interface |
HttpConnectionPool.ConnectionListener |
static interface |
HttpConnectionPool.ErrorListener |
| Constructor and Description |
|---|
HttpConnectionPool(int maxConnections,
int maxStreamsPerConnection,
org.xnio.XnioWorker worker,
io.undertow.connector.ByteBufferPool byteBufferPool,
org.xnio.OptionMap options,
HostPool hostPool,
long connectionIdleTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected HttpConnectionPool.ClientConnectionHolder |
createClientConnectionHolder(io.undertow.client.ClientConnection connection,
URI uri,
SSLContext sslContext) |
void |
getConnection(HttpConnectionPool.ConnectionListener connectionListener,
HttpConnectionPool.ErrorListener errorListener,
boolean ignoreConnectionLimits,
SSLContext sslContext) |
void |
returnConnection(HttpConnectionPool.ClientConnectionHolder connection) |
public HttpConnectionPool(int maxConnections,
int maxStreamsPerConnection,
org.xnio.XnioWorker worker,
io.undertow.connector.ByteBufferPool byteBufferPool,
org.xnio.OptionMap options,
HostPool hostPool,
long connectionIdleTimeout)
public void getConnection(HttpConnectionPool.ConnectionListener connectionListener, HttpConnectionPool.ErrorListener errorListener, boolean ignoreConnectionLimits, SSLContext sslContext)
public void returnConnection(HttpConnectionPool.ClientConnectionHolder connection)
protected HttpConnectionPool.ClientConnectionHolder createClientConnectionHolder(io.undertow.client.ClientConnection connection, URI uri, SSLContext sslContext)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.