Uses of Class
org.apache.hc.core5.util.Timeout
-
Packages that use Timeout Package Description org.apache.hc.core5.http Core HTTP transport component APIs.org.apache.hc.core5.http.config Core configuration APIs.org.apache.hc.core5.http.impl Default implementations of core HTTP APIs.org.apache.hc.core5.http.impl.bootstrap HTTP/1.1 requester and server bootstrap.org.apache.hc.core5.http.impl.io Default implementation of HTTP/1.1 transport based on the classic (blocking) I/O model.org.apache.hc.core5.http.impl.nio Default implementation of HTTP/1.1 transport based on the asynchronous (non-blocking) I/O model.org.apache.hc.core5.http.io Core HTTP transport APIs based on the classic (blocking) I/O model.org.apache.hc.core5.http.nio.ssl TLS protocol support.org.apache.hc.core5.http.nio.support.classic Support classes for the asynchronous I/O model that emulate behavior of the classic (blocking) I/O model.org.apache.hc.core5.io Core I/O component APIs and utilities.org.apache.hc.core5.pool Client side connection pool component APIs.org.apache.hc.core5.reactor Event driven network communication APIs and components loosely based on Doug Lea's reactor pattern.org.apache.hc.core5.reactor.ssl TLS/SSL support for I/O reactors.org.apache.hc.core5.util Core utility classes. -
-
Uses of Timeout in org.apache.hc.core5.http
Methods in org.apache.hc.core5.http that return Timeout Modifier and Type Method Description TimeoutEndpointDetails. getSocketTimeout()Gets the socket timeout.TimeoutSocketModalCloseable. getSocketTimeout()Returns the socket timeout value.Methods in org.apache.hc.core5.http with parameters of type Timeout Modifier and Type Method Description voidSocketModalCloseable. setSocketTimeout(Timeout timeout)Sets the socket timeout value.voidStreamControl. setTimeout(Timeout timeout)Constructors in org.apache.hc.core5.http with parameters of type Timeout Constructor Description EndpointDetails(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, Timeout socketTimeout) -
Uses of Timeout in org.apache.hc.core5.http.config
Methods in org.apache.hc.core5.http.config that return Timeout Modifier and Type Method Description TimeoutHttp1Config. getWaitForContinueTimeout()Methods in org.apache.hc.core5.http.config with parameters of type Timeout Modifier and Type Method Description Http1Config.BuilderHttp1Config.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 Timeout Constructor Description BasicEndpointDetails(java.net.SocketAddress remoteAddress, java.net.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 Timeout Modifier and Type Method Description voidHttpServer. close(CloseMode closeMode, Timeout timeout)Closes this process or endpoint and releases any system resources associated with it.java.util.concurrent.Future<AsyncClientEndpoint>HttpAsyncRequester. connect(HttpHost host, Timeout timeout)java.util.concurrent.Future<AsyncClientEndpoint>HttpAsyncRequester. connect(HttpHost host, Timeout timeout, java.lang.Object attachment, FutureCallback<AsyncClientEndpoint> callback)protected java.util.concurrent.Future<AsyncClientEndpoint>HttpAsyncRequester. doConnect(HttpHost host, Timeout timeout, java.lang.Object attachment, FutureCallback<AsyncClientEndpoint> callback)voidHttpAsyncRequester. execute(HttpHost target, AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, Timeout timeout, HttpContext executeContext)<T> java.util.concurrent.Future<T>HttpAsyncRequester. execute(HttpHost target, AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, Timeout timeout, HttpContext context, FutureCallback<T> callback)<T> java.util.concurrent.Future<T>HttpAsyncRequester. execute(HttpHost target, AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, Timeout timeout, FutureCallback<T> callback)voidHttpAsyncRequester. execute(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, Timeout timeout, HttpContext executeContext)voidHttpAsyncRequester. execute(AsyncClientExchangeHandler exchangeHandler, Timeout timeout, HttpContext executeContext)<T> java.util.concurrent.Future<T>HttpAsyncRequester. execute(AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, Timeout timeout, HttpContext context, FutureCallback<T> callback)<T> java.util.concurrent.Future<T>HttpAsyncRequester. execute(AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, Timeout timeout, FutureCallback<T> callback)<T> java.util.concurrent.Future<T>HttpAsyncRequester. execute(AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, Timeout timeout, HttpContext context, FutureCallback<T> callback)ClassicHttpResponseHttpRequester. execute(HttpHost targetHost, ClassicHttpRequest request, HttpResponseInformationCallback informationCallback, Timeout connectTimeout, HttpContext context)ClassicHttpResponseHttpRequester. execute(HttpHost targetHost, ClassicHttpRequest request, Timeout connectTimeout, HttpContext context)<T> THttpRequester. execute(HttpHost targetHost, ClassicHttpRequest request, Timeout connectTimeout, HttpContext context, HttpClientResponseHandler<T> responseHandler)java.util.concurrent.Future<IOSession>AsyncRequester. requestSession(HttpHost host, Timeout timeout, java.lang.Object attachment, FutureCallback<IOSession> callback)AsyncRequesterBootstrapAsyncRequesterBootstrap. setTimeToLive(Timeout timeToLive)RequesterBootstrapRequesterBootstrap. setTimeToLive(Timeout timeToLive)AsyncRequesterBootstrapAsyncRequesterBootstrap. setTlsHandshakeTimeout(Timeout handshakeTimeout)AsyncServerBootstrapAsyncServerBootstrap. setTlsHandshakeTimeout(Timeout handshakeTimeout)Sets TLS handshakeTimeout.Constructors in org.apache.hc.core5.http.impl.bootstrap with parameters of type Timeout Constructor Description HttpAsyncRequester(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost,IOSession> connPool, TlsStrategy tlsStrategy, Timeout handshakeTimeout, IOReactorMetricsListener threadPoolListener, IOWorkerSelector workerSelector, int maxPendingCommandsPerConnection)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 Timeout Modifier and Type Field Description static TimeoutHttpRequestExecutor. DEFAULT_WAIT_FOR_CONTINUEMethods in org.apache.hc.core5.http.impl.io with parameters of type Timeout Modifier and Type Method Description HttpRequestExecutor.BuilderHttpRequestExecutor.Builder. withWaitForContinue(Timeout waitForContinue)Constructors in org.apache.hc.core5.http.impl.io with parameters of type Timeout Constructor Description HttpRequestExecutor(Timeout waitForContinue, ConnectionReuseStrategy connReuseStrategy, Http1StreamListener streamListener) -
Uses of Timeout in org.apache.hc.core5.http.impl.nio
Constructors in org.apache.hc.core5.http.impl.nio with parameters of type Timeout Constructor Description ClientHttp1IOEventHandlerFactory(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 Timeout Modifier and Type Method Description TimeoutSocketConfig. getSoTimeout()Methods in org.apache.hc.core5.http.io with parameters of type Timeout Modifier and Type Method Description booleanBHttpConnection. isDataAvailable(Timeout timeout)Checks if input data is available from the connection.SocketConfig.BuilderSocketConfig.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 Timeout Modifier and Type Method Description booleanBasicClientTlsStrategy. upgrade(TransportSecurityLayer tlsSession, HttpHost host, java.net.SocketAddress localAddress, java.net.SocketAddress remoteAddress, java.lang.Object attachment, Timeout handshakeTimeout)voidBasicClientTlsStrategy. upgrade(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, java.lang.Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback)booleanBasicServerTlsStrategy. upgrade(TransportSecurityLayer tlsSession, HttpHost host, java.net.SocketAddress localAddress, java.net.SocketAddress remoteAddress, java.lang.Object attachment, Timeout handshakeTimeout)voidBasicServerTlsStrategy. upgrade(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, java.lang.Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback)booleanTlsStrategy. upgrade(TransportSecurityLayer sessionLayer, HttpHost host, java.net.SocketAddress localAddress, java.net.SocketAddress remoteAddress, java.lang.Object attachment, Timeout handshakeTimeout)default voidTlsStrategy. upgrade(TransportSecurityLayer sessionLayer, NamedEndpoint endpoint, java.lang.Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback)Secures current session layer with TLS. -
Uses of Timeout in org.apache.hc.core5.http.nio.support.classic
Methods in org.apache.hc.core5.http.nio.support.classic with parameters of type Timeout Modifier and Type Method Description intSharedInputBuffer. read(byte[] b, int off, int len, Timeout timeout)intSharedInputBuffer. read(Timeout timeout)voidSharedOutputBuffer. write(byte[] b, int off, int len, Timeout timeout)voidSharedOutputBuffer. write(int b, Timeout timeout)voidSharedOutputBuffer. writeCompleted(Timeout timeout)Constructors in org.apache.hc.core5.http.nio.support.classic with parameters of type Timeout Constructor Description ClassicToAsyncRequestProducer(ClassicHttpRequest request, int initialBufferSize, Timeout timeout)ClassicToAsyncRequestProducer(ClassicHttpRequest request, Timeout timeout)ClassicToAsyncResponseConsumer(int initialBufferSize, Timeout timeout)ClassicToAsyncResponseConsumer(Timeout timeout) -
Uses of Timeout in org.apache.hc.core5.io
Methods in org.apache.hc.core5.io with parameters of type Timeout Modifier and Type Method Description static java.net.SocketTimeoutExceptionSocketTimeoutExceptionFactory. create(Timeout timeout)Creates 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 Timeout Modifier and Type Method Description java.util.concurrent.Future<PoolEntry<T,C>>ConnPool. lease(T route, java.lang.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.java.util.concurrent.Future<PoolEntry<T,C>>LaxConnPool. lease(T route, java.lang.Object state, Timeout requestTimeout, FutureCallback<PoolEntry<T,C>> callback)java.util.concurrent.Future<PoolEntry<R,C>>RouteSegmentedConnPool. lease(R route, java.lang.Object state, Timeout requestTimeout, FutureCallback<PoolEntry<R,C>> callback)java.util.concurrent.Future<PoolEntry<T,C>>StrictConnPool. lease(T route, java.lang.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 Timeout Modifier and Type Method Description TimeoutIOSession. getSocketTimeout()Returns value of the socket timeout in milliseconds.TimeoutIOReactorConfig. getSoTimeout()Methods in org.apache.hc.core5.reactor with parameters of type Timeout Modifier and Type Method Description java.util.concurrent.Future<IOSession>ConnectionInitiator. connect(NamedEndpoint remoteEndpoint, java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, Timeout timeout, java.lang.Object attachment, FutureCallback<IOSession> callback)Requests a connection to a remote host.protected abstract java.util.concurrent.Future<IOSession>AbstractIOSessionPool. connectSession(T namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback)java.util.concurrent.Future<IOSession>AbstractIOSessionPool. getSession(T endpoint, Timeout connectTimeout, FutureCallback<IOSession> callback)voidIOSession. setSocketTimeout(Timeout timeout)Sets value of the socket timeout in milliseconds.IOReactorConfig.BuilderIOReactorConfig.Builder. setSoTimeout(Timeout soTimeout)Sets the default socket timeout value for non-blocking I/O operations.voidIOEventHandler. timeout(IOSession session, Timeout timeout)Triggered 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 Timeout Modifier and Type Method Description TimeoutSSLIOSession. getSocketTimeout()Methods in org.apache.hc.core5.reactor.ssl with parameters of type Timeout Modifier and Type Method Description voidSSLIOSession. setSocketTimeout(Timeout timeout)voidTransportSecurityLayer. startTls(javax.net.ssl.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(javax.net.ssl.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 Timeout Constructor Description SSLIOSession(NamedEndpoint targetEndpoint, IOSession session, SSLMode sslMode, javax.net.ssl.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, javax.net.ssl.SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout, Callback<SSLIOSession> sessionStartCallback, Callback<SSLIOSession> sessionEndCallback, FutureCallback<javax.net.ssl.SSLSession> resultCallback)Creates new instance ofSSLIOSessionclass. -
Uses of Timeout in org.apache.hc.core5.util
Fields in org.apache.hc.core5.util declared as Timeout Modifier and Type Field Description static TimeoutTimeout. DISABLEDA disabled timeout represented as 0MILLISECONDS.static TimeoutTimeout. INFINITEAn infinite timeout represented as 0MILLISECONDS.static TimeoutTimeout. ONE_MILLISECONDA one millisecondsTimeout.static TimeoutTimeout. ZERO_MILLISECONDSA zero millisecondsTimeout.Methods in org.apache.hc.core5.util that return Timeout Modifier and Type Method Description static TimeoutTimeout. defaultsToDisabled(Timeout timeout)static TimeoutTimeout. defaultsToInfinite(Timeout timeout)TimeoutTimeoutValueException. getActual()Gets how long was the expected timeout in milliseconds.TimeoutTimeoutValueException. getDeadline()Gets how long we actually waited in milliseconds.static TimeoutTimeout. of(long duration, java.util.concurrent.TimeUnit timeUnit)Creates a Timeout.static TimeoutTimeout. of(java.time.Duration duration)Creates 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 TimeoutTimeout. parse(java.lang.String value)Parses a Timeout in the format<Integer><SPACE><TimeUnit>, for example"1,200 MILLISECONDS"TimeoutTimeValue. toTimeout()Methods in org.apache.hc.core5.util with parameters of type Timeout Modifier and Type Method Description static TimeoutTimeout. defaultsToDisabled(Timeout timeout)static TimeoutTimeout. defaultsToInfinite(Timeout timeout)Constructors in org.apache.hc.core5.util with parameters of type Timeout Constructor Description TimeoutValueException(Timeout deadline, Timeout actual)Creates a new exception for the given timeout deadline and actual timeout.
-