@Immutable public abstract class RequestOverrideConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RequestOverrideConfiguration.Builder<B extends RequestOverrideConfiguration.Builder> |
protected static class |
RequestOverrideConfiguration.BuilderImpl<B extends RequestOverrideConfiguration.Builder> |
Modifier | Constructor and Description |
---|---|
protected |
RequestOverrideConfiguration(RequestOverrideConfiguration.Builder<?> builder) |
Modifier and Type | Method and Description |
---|---|
Optional<Duration> |
apiCallAttemptTimeout()
The amount of time to wait for the http request to complete before giving up and timing out.
|
Optional<Duration> |
apiCallTimeout()
The amount of time to allow the client to complete the execution of an API call.
|
List<ApiName> |
apiNames()
The optional names of the higher level libraries that constructed the request.
|
boolean |
equals(Object o) |
int |
hashCode() |
Map<String,List<String>> |
headers()
Optional additional headers to be added to the HTTP request.
|
Map<String,List<String>> |
rawQueryParameters()
Optional additional query parameters to be added to the HTTP request.
|
Optional<Signer> |
signer() |
abstract RequestOverrideConfiguration.Builder<? extends RequestOverrideConfiguration.Builder> |
toBuilder()
Create a
RequestOverrideConfiguration.Builder initialized with the properties of this SdkRequestOverrideConfiguration . |
protected RequestOverrideConfiguration(RequestOverrideConfiguration.Builder<?> builder)
public Map<String,List<String>> headers()
public Map<String,List<String>> rawQueryParameters()
public List<ApiName> apiNames()
public Optional<Duration> apiCallTimeout()
The api call timeout feature doesn't have strict guarantees on how quickly a request is aborted when the timeout is breached. The typical case aborts the request within a few milliseconds but there may occasionally be requests that don't get aborted until several seconds after the timer has been breached. Because of this, the client execution timeout feature should not be used when absolute precision is needed.
This may be used together with apiCallAttemptTimeout()
to enforce both a timeout on each individual HTTP
request (i.e. each retry) and the total time spent on all requests across retries (i.e. the 'api call' time).
public Optional<Duration> apiCallAttemptTimeout()
The request timeout feature doesn't have strict guarantees on how quickly a request is aborted when the timeout is breached. The typical case aborts the request within a few milliseconds but there may occasionally be requests that don't get aborted until several seconds after the timer has been breached. Because of this, the request timeout feature should not be used when absolute precision is needed.
This may be used together with apiCallTimeout()
to enforce both a timeout on each individual HTTP
request
(i.e. each retry) and the total time spent on all requests across retries (i.e. the 'api call' time).
public Optional<Signer> signer()
public abstract RequestOverrideConfiguration.Builder<? extends RequestOverrideConfiguration.Builder> toBuilder()
RequestOverrideConfiguration.Builder
initialized with the properties of this SdkRequestOverrideConfiguration
.Copyright © 2019. All rights reserved.