T
- The type of value associated with the option.public final class SdkAdvancedAsyncClientOption<T> extends ClientOption<T>
ClientAsyncConfiguration.Builder.advancedOption(SdkAdvancedAsyncClientOption,
Object)
.
These options are usually not required outside of testing or advanced libraries, so most users should not need to configure them.
AttributeMap.Key.UnsafeValueType
Modifier and Type | Field and Description |
---|---|
static SdkAdvancedAsyncClientOption<Executor> |
FUTURE_COMPLETION_EXECUTOR
Configure the executor that should be used to complete the
CompletableFuture that is returned by the service
clients. |
public static final SdkAdvancedAsyncClientOption<Executor> FUTURE_COMPLETION_EXECUTOR
CompletableFuture
that is returned by the service
clients. By default, this is an the ExecutorService
managed by the SDK. Executor.execute(Runnable)
is
invoked by the async HTTP client's thread, so Runnable::run
will complete the future on a non-blocking async
thread.Copyright © 2020. All rights reserved.