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
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) -
Uses of Timeout in org.apache.hc.core5.http
Methods 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 TypeMethodDescriptionvoidSocketModalCloseable.setSocketTimeout(Timeout timeout) Sets the socket timeout value.Constructors in org.apache.hc.core5.http with parameters of type TimeoutModifierConstructorDescriptionprotectedEndpointDetails(SocketAddress remoteAddress, SocketAddress localAddress, Timeout socketTimeout) -
Uses of Timeout in org.apache.hc.core5.http.config
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) -
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
Methods in org.apache.hc.core5.http.impl.bootstrap with parameters of type TimeoutModifier and TypeMethodDescriptionvoidCloses this process or endpoint and releases any system resources associated with it.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) voidHttpAsyncRequester.execute(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, Timeout timeout, HttpContext executeContext) voidHttpAsyncRequester.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> THttpRequester.execute(HttpHost targetHost, ClassicHttpRequest request, Timeout connectTimeout, HttpContext context, HttpClientResponseHandler<T> responseHandler) AsyncRequester.requestSession(HttpHost host, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) final AsyncRequesterBootstrapAsyncRequesterBootstrap.setTimeToLive(Timeout timeToLive) final RequesterBootstrapRequesterBootstrap.setTimeToLive(Timeout timeToLive) final AsyncRequesterBootstrapAsyncRequesterBootstrap.setTlsHandshakeTimeout(Timeout handshakeTimeout) final AsyncServerBootstrapAsyncServerBootstrap.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) UseAsyncRequesterBootstrapto 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 TimeoutHttpRequestExecutor.DEFAULT_WAIT_FOR_CONTINUEMethods in org.apache.hc.core5.http.impl.io with parameters of type TimeoutModifier and TypeMethodDescriptionHttpRequestExecutor.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
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
Methods in org.apache.hc.core5.http.io that return TimeoutMethods in org.apache.hc.core5.http.io with parameters of type TimeoutModifier and TypeMethodDescriptionbooleanBHttpConnection.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. -
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 TypeMethodDescriptionbooleanBasicClientTlsStrategy.upgrade(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout) Deprecated.voidBasicClientTlsStrategy.upgrade(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) booleanBasicServerTlsStrategy.upgrade(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout) voidBasicServerTlsStrategy.upgrade(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) booleanTlsStrategy.upgrade(TransportSecurityLayer sessionLayer, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout) default voidTlsStrategy.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
Methods in org.apache.hc.core5.http2.impl.nio that return TimeoutMethods in org.apache.hc.core5.http2.impl.nio with parameters of type TimeoutModifier and TypeMethodDescriptionvoidHttpProtocolNegotiator.setSocketTimeout(Timeout timeout) voidConstructors 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
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) 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 H2RequesterBootstrapH2RequesterBootstrap.setHandshakeTimeout(Timeout handshakeTimeout) final H2ServerBootstrapH2ServerBootstrap.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) UseH2RequesterBootstrapto 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 TypeMethodDescriptionbooleanH2ClientTlsStrategy.upgrade(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout) voidH2ClientTlsStrategy.upgrade(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) booleanH2ServerTlsStrategy.upgrade(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout) voidH2ServerTlsStrategy.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 SocketTimeoutExceptionCreates a newSocketTimeoutExceptionwith a message for the given timeout. -
Uses of Timeout in org.apache.hc.core5.pool
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) StrictConnPool.lease(T route, Object state, Timeout requestTimeout, FutureCallback<PoolEntry<T, C>> callback) -
Uses of Timeout in org.apache.hc.core5.reactor
Methods in org.apache.hc.core5.reactor that return TimeoutModifier and TypeMethodDescriptionIOSession.getSocketTimeout()Returns value of the socket timeout in milliseconds.IOReactorConfig.getSoTimeout()Methods in org.apache.hc.core5.reactor with parameters of type TimeoutModifier and TypeMethodDescriptionConnectionInitiator.connect(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) Requests a connection to a remote host.AbstractIOSessionPool.connectSession(T namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) AbstractIOSessionPool.getSession(T endpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) voidIOSession.setSocketTimeout(Timeout timeout) Sets value of the socket timeout in milliseconds.IOReactorConfig.Builder.setSoTimeout(Timeout soTimeout) Determines the default socket timeout value for non-blocking I/O operations.voidTriggered when the given session has timed out. -
Uses of Timeout in org.apache.hc.core5.reactor.ssl
Methods in org.apache.hc.core5.reactor.ssl that return TimeoutMethods in org.apache.hc.core5.reactor.ssl with parameters of type TimeoutModifier and TypeMethodDescriptionvoidSSLIOSession.setSocketTimeout(Timeout timeout) voidTransportSecurityLayer.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 voidTransportSecurityLayer.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 ofSSLIOSessionclass.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 ofSSLIOSessionclass. -
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) voidLoggingIOSession.setSocketTimeout(Timeout timeout) -
Uses of Timeout in org.apache.hc.core5.util
Fields in org.apache.hc.core5.util declared as TimeoutModifier and TypeFieldDescriptionstatic final TimeoutTimeout.DISABLEDA disabled timeout represented as 0MILLISECONDS.static final TimeoutTimeout.ONE_MILLISECONDA one millisecondsTimeout.static final TimeoutTimeout.ZERO_MILLISECONDSA zero millisecondsTimeout.Methods in org.apache.hc.core5.util that return TimeoutModifier and TypeMethodDescriptionstatic TimeoutTimeout.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 TimeoutCreates a Timeout.static TimeoutCreates a Timeout from a Duration.static TimeoutTimeout.ofDays(long days) Creates a Timeout.static TimeoutTimeout.ofHours(long hours) Creates a Timeout.static TimeoutTimeout.ofMicroseconds(long microseconds) Creates a Timeout.static TimeoutTimeout.ofMilliseconds(long milliseconds) Creates a Timeout.static TimeoutTimeout.ofMinutes(long minutes) Creates a Timeout.static TimeoutTimeout.ofNanoseconds(long nanoseconds) Creates a Timeout.static TimeoutTimeout.ofSeconds(long seconds) Creates a Timeout.static TimeoutParses 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)