Interface HttpAsyncResponseConsumerFactory
- All Known Implementing Classes:
HttpAsyncResponseConsumerFactory.BasicAsyncResponseConsumerFactory
public interface HttpAsyncResponseConsumerFactory
Factory used to create instances of
AsyncResponseConsumer. Each request retry needs its own
instance of the
consumer object. Users can implement this interface and pass their own instance to the specialized
performRequest methods that accept an HttpAsyncResponseConsumerFactory instance as argument.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDefault factory used to create instances ofAsyncResponseConsumer. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpAsyncResponseConsumerFactoryCreates the default type ofAsyncResponseConsumer, with a buffered consumer with a limit of 100MB. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.core5.http.nio.AsyncResponseConsumer<org.apache.hc.core5.http.ClassicHttpResponse>Creates theAbstractAsyncResponseConsumer, called once per request attempt.
-
Field Details
-
DEFAULT
Creates the default type ofAsyncResponseConsumer, with a buffered consumer with a limit of 100MB.
-
-
Method Details
-
createHttpAsyncResponseConsumer
org.apache.hc.core5.http.nio.AsyncResponseConsumer<org.apache.hc.core5.http.ClassicHttpResponse> createHttpAsyncResponseConsumer()Creates theAbstractAsyncResponseConsumer, called once per request attempt.
-