public final class AwsServiceClientImpl extends Object implements AwsServiceClient
factory| Constructor and Description |
|---|
AwsServiceClientImpl(CoreAwsServiceClient client,
TaskDispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
Task<Void> |
execute(AwsRequest request)
Executes the AWS request.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Class<ResultT> resultClass)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Class<ResultT> resultClass,
CodecRegistry codecRegistry)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Decoder<ResultT> resultDecoder)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
Task<Void> |
execute(AwsRequest request,
Long requestTimeout)
Executes the AWS request.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Long requestTimeout,
Class<ResultT> resultClass)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Long requestTimeout,
Class<ResultT> resultClass,
CodecRegistry codecRegistry)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Long requestTimeout,
Decoder<ResultT> resultDecoder)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
CodecRegistry |
getCodecRegistry()
Get the codec registry that will be used to decode responses when a codec registry.
|
AwsServiceClient |
withCodecRegistry(CodecRegistry codecRegistry)
Create a new AwsServiceClient instance with a different codec registry.
|
public AwsServiceClientImpl(CoreAwsServiceClient client, TaskDispatcher dispatcher)
public Task<Void> execute(@Nonnull AwsRequest request)
execute in interface AwsServiceClientrequest - the AWS request to execute.public <ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Decoder<ResultT> resultDecoder)
execute in interface AwsServiceClientResultT - the type into which the response will be decoded.request - the AWS request to execute.resultDecoder - the Decoder to use to decode the result into a value.public <ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Class<ResultT> resultClass)
execute in interface AwsServiceClientResultT - the type into which the response will be decoded.request - the AWS request to execute.resultClass - the class that the result should be decoded as.public <ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Class<ResultT> resultClass, @Nonnull CodecRegistry codecRegistry)
execute in interface AwsServiceClientResultT - the type into which the response will be decoded.request - the AWS request to execute.resultClass - the class that the result should be decoded as.codecRegistry - the codec registry used for de/serialization of the function call.public Task<Void> execute(@Nonnull AwsRequest request, @Nonnull Long requestTimeout)
execute in interface AwsServiceClientrequest - the AWS request to execute.requestTimeout - the number of milliseconds the client should wait for a response from the
server before failing with an error.public <ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Long requestTimeout, @Nonnull Decoder<ResultT> resultDecoder)
execute in interface AwsServiceClientResultT - the type into which the response will be decoded.request - the AWS request to execute.requestTimeout - the number of milliseconds the client should wait for a response from the
server before failing with an error.resultDecoder - the Decoder to use to decode the result into a value.public <ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Long requestTimeout, @Nonnull Class<ResultT> resultClass)
execute in interface AwsServiceClientResultT - the type into which the response will be decoded.request - the AWS request to execute.requestTimeout - the number of milliseconds the client should wait for a response from the
server before failing with an error.resultClass - the class that the result should be decoded as.public <ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Long requestTimeout, @Nonnull Class<ResultT> resultClass, @Nonnull CodecRegistry codecRegistry)
execute in interface AwsServiceClientResultT - the type into which the response will be decoded.request - the AWS request to execute.requestTimeout - the number of milliseconds the client should wait for a response from the
server before failing with an error.resultClass - the class that the result should be decoded as.codecRegistry - the codec registry used for de/serialization of the function call.public CodecRegistry getCodecRegistry()
getCodecRegistry in interface AwsServiceClientCodecRegistrypublic AwsServiceClient withCodecRegistry(@Nonnull CodecRegistry codecRegistry)
withCodecRegistry in interface AwsServiceClientcodecRegistry - the new CodecRegistry for the client.