Class SdkSyncClientHandler
java.lang.Object
software.amazon.awssdk.core.internal.handler.BaseClientHandler
software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler
software.amazon.awssdk.core.client.handler.SdkSyncClientHandler
- All Implemented Interfaces:
AutoCloseable
,SyncClientHandler
,SdkAutoCloseable
- Direct Known Subclasses:
AwsSyncClientHandler
@ThreadSafe
@Immutable
public class SdkSyncClientHandler
extends BaseSyncClientHandler
implements SyncClientHandler
Client handler for SDK clients.
-
Method Summary
Modifier and TypeMethodDescription<InputT extends SdkRequest,
OutputT extends SdkResponse>
OutputTexecute
(ClientExecutionParams<InputT, OutputT> executionParams) Execute's a web service request.<InputT extends SdkRequest,
OutputT extends SdkResponse, ReturnT>
ReturnTexecute
(ClientExecutionParams<InputT, OutputT> executionParams, ResponseTransformer<OutputT, ReturnT> responseTransformer) Execute's a streaming web service request.Methods inherited from class software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler
close
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Method Details
-
execute
public <InputT extends SdkRequest,OutputT extends SdkResponse> OutputT execute(ClientExecutionParams<InputT, OutputT> executionParams) Description copied from interface:SyncClientHandler
Execute's a web service request. Handles marshalling and unmarshalling of data and making the underlying HTTP call(s).- Specified by:
execute
in interfaceSyncClientHandler
- Overrides:
execute
in classBaseSyncClientHandler
- Type Parameters:
InputT
- Input POJO typeOutputT
- Output POJO type- Parameters:
executionParams
- Parameters specific to this invocation of an API.- Returns:
- Unmarshalled output POJO type.
-
execute
public <InputT extends SdkRequest,OutputT extends SdkResponse, ReturnT executeReturnT> (ClientExecutionParams<InputT, OutputT> executionParams, ResponseTransformer<OutputT, ReturnT> responseTransformer) Description copied from interface:SyncClientHandler
Execute's a streaming web service request. Handles marshalling and unmarshalling of data and making the underlying HTTP call(s).- Specified by:
execute
in interfaceSyncClientHandler
- Overrides:
execute
in classBaseSyncClientHandler
- Type Parameters:
InputT
- Input POJO typeOutputT
- Output POJO typeReturnT
- Transformed result returned by responseTransformer. Returned by this method.- Parameters:
executionParams
- Parameters specific to this invocation of an API.responseTransformer
- Response handler for a streaming response. Receives unmarshalled POJO and input stream and returns a transformed result.- Returns:
- Transformed result as returned by responseTransformer.
-