Top Fields Constructors Methods
org.apache.hc.client5.http.impl.async

pack-priv Class InternalH2ConnPool

extends Object
implements ModalCloseable
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.io.ModalCloseable, java.io.Closeable, java.lang.AutoCloseable
Imports
java.net.InetSocketAddress, java.util.concurrent.Future, org.apache.hc.client5.http.config.ConnectionConfig, org.apache.hc.core5.concurrent.CallbackContribution, .FutureCallback, org.apache.hc.core5.function.Resolver, org.apache.hc.core5.http.HttpHost, org.apache.hc.core5.http.nio.ssl.TlsStrategy, org.apache.hc.core5.http2.nio.pool.H2ConnPool, org.apache.hc.core5.io.CloseMode, .ModalCloseable, org.apache.hc.core5.reactor.ConnectionInitiator, .IOSession, org.apache.hc.core5.util.TimeValue, .Timeout

Field Summary

Modifier and TypeField and Description
private volatile Resolver<HttpHost, ConnectionConfig>
private final H2ConnPool

Constructor Summary

AccessConstructor and Description
pack-priv
InternalH2ConnPool(final ConnectionInitiator connectionInitiator, final Resolver<HttpHost, InetSocketAddress> addressResolver, final TlsStrategy tlsStrategy)

Method Summary

Modifier and TypeMethod and Description
public void
close(final CloseMode
How to close the receiver.
closeMode
)

Implements org.apache.hc.core5.io.ModalCloseable.close.

Closes this process or endpoint and releases any system resources associated with it.
public void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.
public void
closeIdle(final TimeValue idleTime)

public Future<IOSession>
getSession(final HttpHost endpoint, final Timeout connectTimeout, final FutureCallback<IOSession> callback)

private ConnectionConfig
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionConfigResolverback to summary
private volatile Resolver<HttpHost, ConnectionConfig> connectionConfigResolver
connPoolback to summary
private final H2ConnPool connPool

Constructor Detail

InternalH2ConnPoolback to summary
pack-priv InternalH2ConnPool(final ConnectionInitiator connectionInitiator, final Resolver<HttpHost, InetSocketAddress> addressResolver, final TlsStrategy tlsStrategy)

Method Detail

closeback to summary
public void close(final CloseMode closeMode)

Implements org.apache.hc.core5.io.ModalCloseable.close.

Doc from org.apache.hc.core5.io.ModalCloseable.close.

Closes this process or endpoint and releases any system resources associated with it. If the endpoint or the process is already closed then invoking this method has no effect.

Parameters
closeMode:CloseMode

How to close the receiver.

Annotations
@Override
closeback to summary
public void close()

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
closeIdleback to summary
public void closeIdle(final TimeValue idleTime)
getSessionback to summary
public Future<IOSession> getSession(final HttpHost endpoint, final Timeout connectTimeout, final FutureCallback<IOSession> callback)
resolveConnectionConfigback to summary
private ConnectionConfig resolveConnectionConfig(final HttpHost httpHost)
setConnectionConfigResolverback to summary
public void setConnectionConfigResolver(final Resolver<HttpHost, ConnectionConfig> connectionConfigResolver)