Interface HttpAsyncClientSupplier
- All Superinterfaces:
Supplier<org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface HttpAsyncClientSupplier
extends Supplier<org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient>
Supplier for
CloseableHttpAsyncClients.
May be used to provide customized HTTP clients to data source clients.
Closing of the supplied CloseableHttpAsyncClient instances is a responsibility of the caller.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic HttpAsyncClientSupplierReturns a default HTTP async client supplier with system proxy settings and connection timeouts.static ThreadFactoryReturns a default thread factory for HTTP async clients which logs uncaught exceptions and errors via SLF4J.
-
Method Details
-
getDefault
Returns a default HTTP async client supplier with system proxy settings and connection timeouts.- Returns:
- a default HTTP async client supplier
-
getDefaultThreadFactory
Returns a default thread factory for HTTP async clients which logs uncaught exceptions and errors via SLF4J.- Returns:
- a default thread factory
-