Uses of Class
org.apache.hc.core5.util.Timeout
Packages that use Timeout
Package
Description
Apache Bench (AB) clone based on HttpCore.
Core HTTP transport component APIs.
Core configuration APIs.
Default implementations of core HTTP APIs.
HTTP/1.1 requester and server bootstrap.
Default implementation of HTTP/1.1 transport based on the classic
(blocking) I/O model.
Default implementation of HTTP/1.1 transport based on
the asynchronous (non-blocking) I/O model.
Core HTTP transport APIs based on the classic (blocking) I/O model.
TLS protocol support.
Default implementation of HTTP/2 transport based on
the asynchronous (non-blocking) I/O model.
HTTP/2 capable requester and server bootstrap.
HTTP/2 specific pool component APIs.
HTTP/2 specific TLS protocol support.
Core I/O component APIs and utilities.
Client side connection pool component APIs.
Event driven network communication APIs and components loosely based on
Doug Lea's
reactor pattern.
TLS/SSL support for I/O reactors.
Core utility classes.
-
Uses of Timeout in org.apache.hc.core5.benchmark
Fields in org.apache.hc.core5.benchmark declared as TimeoutModifier and TypeFieldDescriptionprivate Timeout
BenchmarkConfig.Builder.socketTimeout
private final Timeout
BenchmarkConfig.socketTimeout
Methods in org.apache.hc.core5.benchmark that return TimeoutMethods in org.apache.hc.core5.benchmark with parameters of type TimeoutModifier and TypeMethodDescriptionBenchmarkConfig.Builder.setSocketTimeout
(Timeout socketTimeout) Constructors in org.apache.hc.core5.benchmark with parameters of type TimeoutModifierConstructorDescriptionprivate
BenchmarkConfig
(URI uri, int requests, int concurrencyLevel, TimeValue timeLimit, Timeout socketTimeout, File payloadFile, ContentType contentType, int verbosity, boolean headInsteadOfGet, String[] headers, boolean keepAlive, String method, boolean useChunking, boolean useExpectContinue, boolean useAcceptGZip, String payloadText, String soapAction, boolean forceHttp2, boolean disableSSLVerification, String trustStorePath, String identityStorePath, String trustStorePassword, String identityStorePassword) -
Uses of Timeout in org.apache.hc.core5.http
Fields in org.apache.hc.core5.http declared as TimeoutMethods in org.apache.hc.core5.http that return TimeoutModifier and TypeMethodDescriptionEndpointDetails.getSocketTimeout()
Gets the socket timeout.SocketModalCloseable.getSocketTimeout()
Returns the socket timeout value.Methods in org.apache.hc.core5.http with parameters of type TimeoutModifier and TypeMethodDescriptionvoid
SocketModalCloseable.setSocketTimeout
(Timeout timeout) Sets the socket timeout value.Constructors in org.apache.hc.core5.http with parameters of type TimeoutModifierConstructorDescriptionprotected
EndpointDetails
(SocketAddress remoteAddress, SocketAddress localAddress, Timeout socketTimeout) -
Uses of Timeout in org.apache.hc.core5.http.config
Fields in org.apache.hc.core5.http.config declared as TimeoutModifier and TypeFieldDescriptionprivate static final Timeout
Http1Config.INIT_WAIT_FOR_CONTINUE
private Timeout
Http1Config.Builder.waitForContinueTimeout
private final Timeout
Http1Config.waitForContinueTimeout
Methods in org.apache.hc.core5.http.config that return TimeoutMethods in org.apache.hc.core5.http.config with parameters of type TimeoutModifier and TypeMethodDescriptionHttp1Config.Builder.setWaitForContinueTimeout
(Timeout waitForContinueTimeout) Constructors in org.apache.hc.core5.http.config with parameters of type TimeoutModifierConstructorDescription(package private)
Http1Config
(int bufferSize, int chunkSizeHint, Timeout waitForContinueTimeout, int maxLineLength, int maxHeaderCount, int maxEmptyLineCount, int initialWindowSize) -
Uses of Timeout in org.apache.hc.core5.http.impl
Constructors in org.apache.hc.core5.http.impl with parameters of type TimeoutModifierConstructorDescriptionBasicEndpointDetails
(SocketAddress remoteAddress, SocketAddress localAddress, HttpConnectionMetrics metrics, Timeout socketTimeout) -
Uses of Timeout in org.apache.hc.core5.http.impl.bootstrap
Fields in org.apache.hc.core5.http.impl.bootstrap declared as TimeoutModifier and TypeFieldDescriptionprivate Timeout
AsyncRequesterBootstrap.handshakeTimeout
private Timeout
AsyncServerBootstrap.handshakeTimeout
private final Timeout
HttpAsyncRequester.handshakeTimeout
private Timeout
AsyncRequesterBootstrap.timeToLive
private Timeout
RequesterBootstrap.timeToLive
Methods in org.apache.hc.core5.http.impl.bootstrap with parameters of type TimeoutModifier and TypeMethodDescriptionvoid
Closes this process or endpoint and releases any system resources associated with it.AbstractConnectionInitiatorBase.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) HttpAsyncRequester.connect
(HttpHost host, Timeout timeout, Object attachment, FutureCallback<AsyncClientEndpoint> callback) protected Future
<AsyncClientEndpoint> HttpAsyncRequester.doConnect
(HttpHost host, Timeout timeout, Object attachment, FutureCallback<AsyncClientEndpoint> callback) void
HttpAsyncRequester.execute
(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, Timeout timeout, HttpContext executeContext) void
HttpAsyncRequester.execute
(AsyncClientExchangeHandler exchangeHandler, Timeout timeout, HttpContext executeContext) final <T> Future
<T> HttpAsyncRequester.execute
(AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, Timeout timeout, HttpContext context, FutureCallback<T> callback) final <T> Future
<T> HttpAsyncRequester.execute
(AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, Timeout timeout, FutureCallback<T> callback) final <T> Future
<T> HttpAsyncRequester.execute
(AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, Timeout timeout, HttpContext context, FutureCallback<T> callback) HttpRequester.execute
(HttpHost targetHost, ClassicHttpRequest request, HttpResponseInformationCallback informationCallback, Timeout connectTimeout, HttpContext context) HttpRequester.execute
(HttpHost targetHost, ClassicHttpRequest request, Timeout connectTimeout, HttpContext context) <T> T
HttpRequester.execute
(HttpHost targetHost, ClassicHttpRequest request, Timeout connectTimeout, HttpContext context, HttpClientResponseHandler<T> responseHandler) AsyncRequester.requestSession
(HttpHost host, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) final AsyncRequesterBootstrap
AsyncRequesterBootstrap.setTimeToLive
(Timeout timeToLive) final RequesterBootstrap
RequesterBootstrap.setTimeToLive
(Timeout timeToLive) final AsyncRequesterBootstrap
AsyncRequesterBootstrap.setTlsHandshakeTimeout
(Timeout handshakeTimeout) final AsyncServerBootstrap
AsyncServerBootstrap.setTlsHandshakeTimeout
(Timeout handshakeTimeout) Assigns TLS handshakeTimeout
.Constructors in org.apache.hc.core5.http.impl.bootstrap with parameters of type TimeoutModifierConstructorDescriptionHttpAsyncRequester
(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool, TlsStrategy tlsStrategy, Timeout handshakeTimeout) UseAsyncRequesterBootstrap
to create instances of this class. -
Uses of Timeout in org.apache.hc.core5.http.impl.io
Fields in org.apache.hc.core5.http.impl.io declared as TimeoutModifier and TypeFieldDescriptionstatic final Timeout
HttpRequestExecutor.DEFAULT_WAIT_FOR_CONTINUE
private static final Timeout
BHttpConnectionBase.STALE_CHECK_TIMEOUT
private Timeout
HttpRequestExecutor.Builder.waitForContinue
private final Timeout
HttpRequestExecutor.waitForContinue
Methods in org.apache.hc.core5.http.impl.io that return TimeoutMethods in org.apache.hc.core5.http.impl.io with parameters of type TimeoutModifier and TypeMethodDescriptionprotected boolean
BHttpConnectionBase.awaitInput
(Timeout timeout) private int
BHttpConnectionBase.fillInputBuffer
(Timeout timeout) boolean
BHttpConnectionBase.isDataAvailable
(Timeout timeout) void
BHttpConnectionBase.setSocketTimeout
(Timeout timeout) HttpRequestExecutor.Builder.withWaitForContinue
(Timeout waitForContinue) Constructors in org.apache.hc.core5.http.impl.io with parameters of type TimeoutModifierConstructorDescriptionHttpRequestExecutor
(Timeout waitForContinue, ConnectionReuseStrategy connReuseStrategy, Http1StreamListener streamListener) Creates new instance of HttpRequestExecutor. -
Uses of Timeout in org.apache.hc.core5.http.impl.nio
Fields in org.apache.hc.core5.http.impl.nio declared as TimeoutModifier and TypeFieldDescriptionprivate final Timeout
ClientHttp1IOEventHandlerFactory.handshakeTimeout
private final Timeout
ServerHttp1IOEventHandlerFactory.handshakeTimeout
private Timeout
ClientHttp1StreamHandler.timeout
Methods in org.apache.hc.core5.http.impl.nio that return TimeoutModifier and TypeMethodDescription(package private) Timeout
AbstractHttp1StreamDuplexer.getSessionTimeout()
AbstractHttp1IOEventHandler.getSocketTimeout()
AbstractHttp1StreamDuplexer.getSocketTimeout()
Http1StreamChannel.getSocketTimeout()
ServerHttp1StreamDuplexer.DelayedOutputChannel.getSocketTimeout()
Methods in org.apache.hc.core5.http.impl.nio with parameters of type TimeoutModifier and TypeMethodDescriptionfinal void
(package private) void
AbstractHttp1StreamDuplexer.setSessionTimeout
(Timeout timeout) void
AbstractHttp1IOEventHandler.setSocketTimeout
(Timeout timeout) void
AbstractHttp1StreamDuplexer.setSocketTimeout
(Timeout timeout) void
Http1StreamChannel.setSocketTimeout
(Timeout timeout) void
ServerHttp1StreamDuplexer.DelayedOutputChannel.setSocketTimeout
(Timeout timeout) void
Constructors in org.apache.hc.core5.http.impl.nio with parameters of type TimeoutModifierConstructorDescriptionClientHttp1IOEventHandlerFactory
(ClientHttp1StreamDuplexerFactory streamDuplexerFactory, TlsStrategy tlsStrategy, Timeout handshakeTimeout) ServerHttp1IOEventHandlerFactory
(ServerHttp1StreamDuplexerFactory streamDuplexerFactory, TlsStrategy tlsStrategy, Timeout handshakeTimeout) -
Uses of Timeout in org.apache.hc.core5.http.io
Fields in org.apache.hc.core5.http.io declared as TimeoutModifier and TypeFieldDescriptionprivate static final Timeout
SocketConfig.DEFAULT_SOCKET_TIMEOUT
private Timeout
SocketConfig.Builder.soTimeout
private final Timeout
SocketConfig.soTimeout
Methods in org.apache.hc.core5.http.io that return TimeoutMethods in org.apache.hc.core5.http.io with parameters of type TimeoutModifier and TypeMethodDescriptionboolean
BHttpConnection.isDataAvailable
(Timeout timeout) Checks if input data is available from the connection.SocketConfig.Builder.setSoTimeout
(Timeout soTimeout) Determines the default socket timeout value for blocking I/O operations.Constructors in org.apache.hc.core5.http.io with parameters of type TimeoutModifierConstructorDescription(package private)
SocketConfig
(Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int sndBufSize, int rcvBufSize, int backlogSize, SocketAddress socksProxyAddress) -
Uses of Timeout in org.apache.hc.core5.http.nio.ssl
Methods in org.apache.hc.core5.http.nio.ssl with parameters of type TimeoutModifier and TypeMethodDescriptionboolean
BasicClientTlsStrategy.upgrade
(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout) Deprecated.void
BasicClientTlsStrategy.upgrade
(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) boolean
BasicServerTlsStrategy.upgrade
(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout) void
BasicServerTlsStrategy.upgrade
(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) boolean
TlsStrategy.upgrade
(TransportSecurityLayer sessionLayer, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout) default void
TlsStrategy.upgrade
(TransportSecurityLayer sessionLayer, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) Secures current session layer with TLS. -
Uses of Timeout in org.apache.hc.core5.http2.impl.nio
Fields in org.apache.hc.core5.http2.impl.nio declared as TimeoutModifier and TypeFieldDescriptionprivate final Timeout
ClientHttpProtocolNegotiationStarter.handshakeTimeout
private final Timeout
ServerHttpProtocolNegotiationStarter.handshakeTimeout
Methods in org.apache.hc.core5.http2.impl.nio that return TimeoutModifier and TypeMethodDescriptionAbstractH2IOEventHandler.getSocketTimeout()
AbstractH2StreamMultiplexer.getSocketTimeout()
HttpProtocolNegotiator.getSocketTimeout()
PrefaceHandlerBase.getSocketTimeout()
Methods in org.apache.hc.core5.http2.impl.nio with parameters of type TimeoutModifier and TypeMethodDescriptionfinal void
void
AbstractH2IOEventHandler.setSocketTimeout
(Timeout timeout) void
AbstractH2StreamMultiplexer.setSocketTimeout
(Timeout timeout) void
HttpProtocolNegotiator.setSocketTimeout
(Timeout timeout) void
PrefaceHandlerBase.setSocketTimeout
(Timeout timeout) void
void
void
Constructors in org.apache.hc.core5.http2.impl.nio with parameters of type TimeoutModifierConstructorDescriptionClientHttpProtocolNegotiationStarter
(ClientHttp1StreamDuplexerFactory http1StreamHandlerFactory, ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, HttpVersionPolicy versionPolicy, TlsStrategy tlsStrategy, Timeout handshakeTimeout) ServerHttpProtocolNegotiationStarter
(ServerHttp1StreamDuplexerFactory http1StreamHandlerFactory, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, HttpVersionPolicy versionPolicy, TlsStrategy tlsStrategy, Timeout handshakeTimeout) -
Uses of Timeout in org.apache.hc.core5.http2.impl.nio.bootstrap
Fields in org.apache.hc.core5.http2.impl.nio.bootstrap declared as TimeoutModifier and TypeFieldDescriptionprivate Timeout
H2RequesterBootstrap.handshakeTimeout
private Timeout
H2ServerBootstrap.handshakeTimeout
Methods in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type TimeoutModifier and TypeMethodDescriptionprotected Future
<AsyncClientEndpoint> H2AsyncRequester.doConnect
(HttpHost host, Timeout timeout, Object attachment, FutureCallback<AsyncClientEndpoint> callback) private void
H2MultiplexingRequester.execute
(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, CancellableDependency cancellableDependency, Timeout timeout, HttpContext context) H2MultiplexingRequester.execute
(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, Timeout timeout, HttpContext context) H2MultiplexingRequester.execute
(AsyncClientExchangeHandler exchangeHandler, Timeout timeout, HttpContext context) final <T> Future
<T> H2MultiplexingRequester.execute
(AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, Timeout timeout, HttpContext context, FutureCallback<T> callback) final <T> Future
<T> H2MultiplexingRequester.execute
(AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, Timeout timeout, FutureCallback<T> callback) final <T> Future
<T> H2MultiplexingRequester.execute
(AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, Timeout timeout, HttpContext context, FutureCallback<T> callback) final H2RequesterBootstrap
H2RequesterBootstrap.setHandshakeTimeout
(Timeout handshakeTimeout) final H2ServerBootstrap
H2ServerBootstrap.setHandshakeTimeout
(Timeout handshakeTimeout) Constructors in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type TimeoutModifierConstructorDescriptionH2AsyncRequester
(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool, TlsStrategy tlsStrategy, Timeout handshakeTimeout) UseH2RequesterBootstrap
to create instances of this class. -
Uses of Timeout in org.apache.hc.core5.http2.nio.pool
Methods in org.apache.hc.core5.http2.nio.pool with parameters of type TimeoutModifier and TypeMethodDescriptionH2ConnPool.connectSession
(HttpHost namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) -
Uses of Timeout in org.apache.hc.core5.http2.ssl
Methods in org.apache.hc.core5.http2.ssl with parameters of type TimeoutModifier and TypeMethodDescriptionboolean
H2ClientTlsStrategy.upgrade
(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout) void
H2ClientTlsStrategy.upgrade
(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) boolean
H2ServerTlsStrategy.upgrade
(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout) void
H2ServerTlsStrategy.upgrade
(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) -
Uses of Timeout in org.apache.hc.core5.io
Methods in org.apache.hc.core5.io with parameters of type TimeoutModifier and TypeMethodDescriptionstatic SocketTimeoutException
Creates a newSocketTimeoutException
with a message for the given timeout. -
Uses of Timeout in org.apache.hc.core5.pool
Fields in org.apache.hc.core5.pool declared as TimeoutModifier and TypeFieldDescriptionprivate static final Timeout
DefaultDisposalCallback.DEFAULT_CLOSE_TIMEOUT
Methods in org.apache.hc.core5.pool with parameters of type TimeoutModifier and TypeMethodDescriptionConnPool.lease
(T route, Object state, Timeout requestTimeout, FutureCallback<PoolEntry<T, C>> callback) Attempts to lease a connection for the given route and with the given state from the pool.LaxConnPool.lease
(T route, Object state, Timeout requestTimeout, FutureCallback<PoolEntry<T, C>> callback) LaxConnPool.PerRoutePool.lease
(Object state, Timeout requestTimeout, FutureCallback<PoolEntry<T, C>> callback) StrictConnPool.lease
(T route, Object state, Timeout requestTimeout, FutureCallback<PoolEntry<T, C>> callback) Constructors in org.apache.hc.core5.pool with parameters of type TimeoutModifierConstructorDescription(package private)
LeaseRequest
(Object state, Timeout requestTimeout, BasicFuture<PoolEntry<T, C>> future) LeaseRequest
(T route, Object state, Timeout requestTimeout, BasicFuture<PoolEntry<T, C>> future) Constructor -
Uses of Timeout in org.apache.hc.core5.reactor
Fields in org.apache.hc.core5.reactor declared as TimeoutModifier and TypeFieldDescriptionprivate Timeout
IOSessionImpl.socketTimeout
private Timeout
IOReactorConfig.Builder.soTimeout
private final Timeout
IOReactorConfig.soTimeout
(package private) final Timeout
IOSessionRequest.timeout
Methods in org.apache.hc.core5.reactor that return TimeoutModifier and TypeMethodDescriptionInternalDataChannel.getSocketTimeout()
IOSession.getSocketTimeout()
Returns value of the socket timeout in milliseconds.IOSessionImpl.getSocketTimeout()
IOReactorConfig.getSoTimeout()
(package private) abstract Timeout
InternalChannel.getTimeout()
(package private) Timeout
InternalConnectChannel.getTimeout()
(package private) Timeout
InternalDataChannel.getTimeout()
Methods in org.apache.hc.core5.reactor with parameters of type TimeoutModifier and TypeMethodDescriptionvoid
Shuts down the I/O reactor either gracefully or immediately.void
Shuts down the I/O reactor either gracefully or immediately.AbstractIOReactorBase.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) ConnectionInitiator.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) Requests a connection to a remote host.SingleCoreIOReactor.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) AbstractIOSessionPool.connectSession
(T namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) AbstractIOSessionPool.getSession
(T endpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) private void
AbstractIOSessionPool.getSessionInternal
(AbstractIOSessionPool.PoolEntry poolEntry, boolean requestNew, T namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) (package private) abstract void
(package private) void
(package private) void
void
InternalDataChannel.setSocketTimeout
(Timeout timeout) void
IOSession.setSocketTimeout
(Timeout timeout) Sets value of the socket timeout in milliseconds.void
IOSessionImpl.setSocketTimeout
(Timeout timeout) IOReactorConfig.Builder.setSoTimeout
(Timeout soTimeout) Determines the default socket timeout value for non-blocking I/O operations.void
InternalDataChannel.startTls
(SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout) void
InternalDataChannel.startTls
(SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) void
Triggered when the given session has timed out.void
Constructors in org.apache.hc.core5.reactor with parameters of type TimeoutModifierConstructorDescription(package private)
IOReactorConfig
(TimeValue selectInterval, int ioThreadCount, Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int trafficClass, int sndBufSize, int rcvBufSize, int backlogSize, SocketAddress socksProxyAddress, String socksProxyUsername, String socksProxyPassword) IOSessionRequest
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) -
Uses of Timeout in org.apache.hc.core5.reactor.ssl
Fields in org.apache.hc.core5.reactor.ssl declared as TimeoutModifier and TypeFieldDescriptionprivate final Timeout
SSLIOSession.handshakeTimeout
private Timeout
SSLIOSession.socketTimeout
Methods in org.apache.hc.core5.reactor.ssl that return TimeoutMethods in org.apache.hc.core5.reactor.ssl with parameters of type TimeoutModifier and TypeMethodDescriptionvoid
SSLIOSession.setSocketTimeout
(Timeout timeout) void
TransportSecurityLayer.startTls
(SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout) Starts TLS session over an existing network connection with the given SSL context.default void
TransportSecurityLayer.startTls
(SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) Starts TLS session over an existing network connection with the given SSL context.Constructors in org.apache.hc.core5.reactor.ssl with parameters of type TimeoutModifierConstructorDescriptionSSLIOSession
(NamedEndpoint targetEndpoint, IOSession session, SSLMode sslMode, SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Callback<SSLIOSession> sessionStartCallback, Callback<SSLIOSession> sessionEndCallback, Timeout connectTimeout) Creates new instance ofSSLIOSession
class.SSLIOSession
(NamedEndpoint targetEndpoint, IOSession session, SSLMode sslMode, SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout, Callback<SSLIOSession> sessionStartCallback, Callback<SSLIOSession> sessionEndCallback, FutureCallback<SSLSession> resultCallback) Creates new instance ofSSLIOSession
class. -
Uses of Timeout in org.apache.hc.core5.testing.nio
Methods in org.apache.hc.core5.testing.nio that return TimeoutMethods in org.apache.hc.core5.testing.nio with parameters of type TimeoutModifier and TypeMethodDescriptionAsyncRequester.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) H2TestClient.connect
(HttpHost host, Timeout timeout, FutureCallback<ClientSessionEndpoint> callback) Http1TestClient.connect
(HttpHost host, Timeout timeout, FutureCallback<ClientSessionEndpoint> callback) AsyncRequester.requestSession
(HttpHost host, Timeout timeout, FutureCallback<IOSession> callback) void
LoggingIOSession.setSocketTimeout
(Timeout timeout) -
Uses of Timeout in org.apache.hc.core5.util
Fields in org.apache.hc.core5.util declared as TimeoutModifier and TypeFieldDescriptionprivate final Timeout
TimeoutValueException.actual
private final Timeout
TimeoutValueException.deadline
static final Timeout
Timeout.DISABLED
A disabled timeout represented as 0MILLISECONDS
.static final Timeout
Timeout.ONE_MILLISECOND
A one millisecondsTimeout
.static final Timeout
Timeout.ZERO_MILLISECONDS
A zero millisecondsTimeout
.Methods in org.apache.hc.core5.util that return TimeoutModifier and TypeMethodDescriptionstatic Timeout
Timeout.defaultsToDisabled
(Timeout timeout) TimeoutValueException.getActual()
Gets how long was the expected timeout in milliseconds.TimeoutValueException.getDeadline()
Gets how long we actually waited in milliseconds.static Timeout
Creates a Timeout.static Timeout
Creates a Timeout from a Duration.static Timeout
Timeout.ofDays
(long days) Creates a Timeout.static Timeout
Timeout.ofHours
(long hours) Creates a Timeout.static Timeout
Timeout.ofMicroseconds
(long microseconds) Creates a Timeout.static Timeout
Timeout.ofMilliseconds
(long milliseconds) Creates a Timeout.static Timeout
Timeout.ofMinutes
(long minutes) Creates a Timeout.static Timeout
Timeout.ofNanoseconds
(long nanoseconds) Creates a Timeout.static Timeout
Timeout.ofSeconds
(long seconds) Creates a Timeout.static Timeout
Parses a Timeout in the format<Integer><SPACE><TimeUnit>
, for example"1,200 MILLISECONDS"
TimeValue.toTimeout()
Methods in org.apache.hc.core5.util with parameters of type TimeoutConstructors in org.apache.hc.core5.util with parameters of type TimeoutModifierConstructorDescriptionTimeoutValueException
(Timeout deadline, Timeout actual) Creates a new exception for the given timeout deadline and actual timeout.
BasicClientTlsStrategy.upgrade(TransportSecurityLayer, NamedEndpoint, Object, Timeout, FutureCallback)