Package org.wildfly.httpclient.common
Class HttpConnectionPool
java.lang.Object
org.wildfly.httpclient.common.HttpConnectionPool
- All Implemented Interfaces:
Closeable,AutoCloseable
A pool of HTTP connections for a given host pool.
- Author:
- Stuart Douglas, Flavia Rainone
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classstatic interfacestatic interfacestatic interface -
Constructor Summary
ConstructorsConstructorDescriptionHttpConnectionPool(int maxConnections, int maxStreamsPerConnection, org.xnio.XnioWorker worker, ByteBufferPool byteBufferPool, org.xnio.OptionMap options, HostPool hostPool, long connectionIdleTimeout) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createClientConnectionHolder(ClientConnection connection, URI uri, SSLContext sslContext) voidgetConnection(HttpConnectionPool.ConnectionListener connectionListener, HttpConnectionPool.ErrorListener errorListener, boolean ignoreConnectionLimits, SSLContext sslContext) void
-
Constructor Details
-
HttpConnectionPool
public HttpConnectionPool(int maxConnections, int maxStreamsPerConnection, org.xnio.XnioWorker worker, ByteBufferPool byteBufferPool, org.xnio.OptionMap options, HostPool hostPool, long connectionIdleTimeout)
-
-
Method Details
-
getConnection
public void getConnection(HttpConnectionPool.ConnectionListener connectionListener, HttpConnectionPool.ErrorListener errorListener, boolean ignoreConnectionLimits, SSLContext sslContext) -
returnConnection
-
createClientConnectionHolder
protected HttpConnectionPool.ClientConnectionHolder createClientConnectionHolder(ClientConnection connection, URI uri, SSLContext sslContext) -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-