public class HttpConnectionPool extends Object implements Closeable
This pool is designed to give an
Modifier and Type | Class and Description |
---|---|
static interface |
HttpConnectionPool.ConnectionHandle |
static interface |
HttpConnectionPool.ConnectionListener |
static interface |
HttpConnectionPool.ErrorListener |
Constructor and Description |
---|
HttpConnectionPool(int maxConnections,
int maxStreamsPerConnection,
XnioWorker worker,
ByteBufferPool byteBufferPool,
OptionMap options,
HostPool hostPool,
long connectionIdleTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
getConnection(HttpConnectionPool.ConnectionListener connectionListener,
HttpConnectionPool.ErrorListener errorListener,
boolean ignoreConnectionLimits,
SSLContext sslContext) |
void |
returnConnection(org.wildfly.httpclient.common.HttpConnectionPool.ClientConnectionHolder connection) |
public HttpConnectionPool(int maxConnections, int maxStreamsPerConnection, XnioWorker worker, ByteBufferPool byteBufferPool, OptionMap options, HostPool hostPool, long connectionIdleTimeout)
public void getConnection(HttpConnectionPool.ConnectionListener connectionListener, HttpConnectionPool.ErrorListener errorListener, boolean ignoreConnectionLimits, SSLContext sslContext)
public void returnConnection(org.wildfly.httpclient.common.HttpConnectionPool.ClientConnectionHolder connection)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2019 JBoss by Red Hat. All rights reserved.