public static interface AsyncExecuteRequest.Builder
Modifier and Type | Method and Description |
---|---|
AsyncExecuteRequest |
build() |
AsyncExecuteRequest.Builder |
fullDuplex(boolean fullDuplex)
Option to indicate if the request is for a full duplex operation ie., request and response are sent/received at
the same time.
|
AsyncExecuteRequest.Builder |
httpExecutionAttributes(SdkHttpExecutionAttributes executionAttributes)
Sets the additional HTTP execution attributes collection for this request.
|
AsyncExecuteRequest.Builder |
metricCollector(MetricCollector metricCollector)
Set the
MetricCollector to be used by the HTTP client to
report metrics collected for this request. |
<T> AsyncExecuteRequest.Builder |
putHttpExecutionAttribute(SdkHttpExecutionAttribute<T> attribute,
T value)
Put an HTTP execution attribute into to the collection of HTTP execution attributes for this request
|
AsyncExecuteRequest.Builder |
request(SdkHttpRequest request)
Set the HTTP request to be executed by the client.
|
AsyncExecuteRequest.Builder |
requestContentPublisher(SdkHttpContentPublisher requestContentPublisher)
Set the publisher of the request content.
|
AsyncExecuteRequest.Builder |
responseHandler(SdkAsyncHttpResponseHandler responseHandler)
Set the response handler for the resposne.
|
AsyncExecuteRequest.Builder request(SdkHttpRequest request)
request
- The request.AsyncExecuteRequest.Builder requestContentPublisher(SdkHttpContentPublisher requestContentPublisher)
requestContentPublisher
- The publisher.AsyncExecuteRequest.Builder responseHandler(SdkAsyncHttpResponseHandler responseHandler)
responseHandler
- The response handler.AsyncExecuteRequest.Builder metricCollector(MetricCollector metricCollector)
MetricCollector
to be used by the HTTP client to
report metrics collected for this request.metricCollector
- The metric collector.AsyncExecuteRequest.Builder fullDuplex(boolean fullDuplex)
This can be used to set http configuration like ReadTimeouts as soon as request has begin sending data instead of waiting for the entire request to be sent.
<T> AsyncExecuteRequest.Builder putHttpExecutionAttribute(SdkHttpExecutionAttribute<T> attribute, T value)
attribute
- The execution attribute objectvalue
- The value of the execution attribute.AsyncExecuteRequest.Builder httpExecutionAttributes(SdkHttpExecutionAttributes executionAttributes)
This will override the attributes configured through
putHttpExecutionAttribute(SdkHttpExecutionAttribute, Object)
executionAttributes
- Execution attributes map for this request.AsyncExecuteRequest build()
Copyright © 2023. All rights reserved.