public class AmazonWebServicesClientProxy extends Object implements CallChain
CallChain,
ProxyClientCallChain.Callback<RequestT,ResponseT,ClientT,ModelT,CallbackT extends StdCallbackContext,ReturnT>, CallChain.Caller<RequestT,ClientT,ModelT,CallbackT extends StdCallbackContext>, CallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT extends StdCallbackContext>, CallChain.Exceptional<RequestT,ResponseT,ClientT,ModelT,CallbackT extends StdCallbackContext>, CallChain.ExceptionPropagate<RequestT,E extends Exception,ClientT,ModelT,CallbackT extends StdCallbackContext,ReturnT>, CallChain.Initiator<ClientT,ModelT,CallbackT extends StdCallbackContext>, CallChain.RequestMaker<ClientT,ModelT,CallbackT extends StdCallbackContext>, CallChain.Stabilizer<RequestT,ResponseT,ClientT,ModelT,CallbackT extends StdCallbackContext>| Modifier and Type | Field and Description |
|---|---|
static int |
HTTP_STATUS_GONE |
static int |
HTTP_STATUS_NETWORK_AUTHN_REQUIRED |
| Constructor and Description |
|---|
AmazonWebServicesClientProxy(boolean inHandshakeMode,
LoggerProxy loggerProxy,
Credentials credentials,
Supplier<Long> remainingTimeToExecute,
DelayFactory override) |
AmazonWebServicesClientProxy(LoggerProxy loggerProxy,
Credentials credentials,
Supplier<Long> remainingTimeToExecute) |
AmazonWebServicesClientProxy(LoggerProxy loggerProxy,
Credentials credentials,
Supplier<Long> remainingTimeToExecute,
DelayFactory override) |
| Modifier and Type | Method and Description |
|---|---|
<RequestT,ClientT,ModelT,CallbackT extends StdCallbackContext> |
defaultHandler(RequestT request,
Exception e,
ClientT client,
ModelT model,
CallbackT context) |
long |
getRemainingTimeInMillis() |
<ClientT,ModelT,CallbackT extends StdCallbackContext> |
initiate(String callGraph,
ProxyClient<ClientT> client,
ModelT model,
CallbackT cxt)
Each service call must be first initiated.
|
<RequestT extends com.amazonaws.AmazonWebServiceRequest,ResultT extends com.amazonaws.AmazonWebServiceResult<com.amazonaws.ResponseMetadata>> |
injectCredentialsAndInvoke(RequestT request,
Function<RequestT,ResultT> requestFunction) |
<RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResultT extends software.amazon.awssdk.awscore.AwsResponse,IterableT extends software.amazon.awssdk.core.pagination.sync.SdkIterable<ResultT>> |
injectCredentialsAndInvokeIterableV2(RequestT request,
Function<RequestT,IterableT> requestFunction) |
<RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResultT extends software.amazon.awssdk.awscore.AwsResponse> |
injectCredentialsAndInvokeV2(RequestT request,
Function<RequestT,ResultT> requestFunction) |
<RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResultT extends software.amazon.awssdk.awscore.AwsResponse> |
injectCredentialsAndInvokeV2Async(RequestT request,
Function<RequestT,CompletableFuture<ResultT>> requestFunction) |
<ClientT,ModelT,CallbackT extends StdCallbackContext> |
newInitiator(ProxyClient<ClientT> client,
ModelT model,
CallbackT context)
factory method can created an
CallChain.Initiator |
<ClientT,ModelT,CallbackT extends StdCallbackContext> |
newInitiator(Supplier<ClientT> client,
ModelT model,
CallbackT context) |
<ClientT> ProxyClient<ClientT> |
newProxy(Supplier<ClientT> client) |
public static final int HTTP_STATUS_NETWORK_AUTHN_REQUIRED
public static final int HTTP_STATUS_GONE
public AmazonWebServicesClientProxy(LoggerProxy loggerProxy, Credentials credentials, Supplier<Long> remainingTimeToExecute)
public AmazonWebServicesClientProxy(LoggerProxy loggerProxy, Credentials credentials, Supplier<Long> remainingTimeToExecute, DelayFactory override)
public AmazonWebServicesClientProxy(boolean inHandshakeMode,
LoggerProxy loggerProxy,
Credentials credentials,
Supplier<Long> remainingTimeToExecute,
DelayFactory override)
public <ClientT> ProxyClient<ClientT> newProxy(@Nonnull Supplier<ClientT> client)
public <ClientT,ModelT,CallbackT extends StdCallbackContext> CallChain.Initiator<ClientT,ModelT,CallbackT> newInitiator(@Nonnull Supplier<ClientT> client, ModelT model, CallbackT context)
public <ClientT,ModelT,CallbackT extends StdCallbackContext> CallChain.Initiator<ClientT,ModelT,CallbackT> newInitiator(ProxyClient<ClientT> client, ModelT model, CallbackT context)
CallChainCallChain.InitiatornewInitiator in interface CallChainClientT - Actual client e.g. KinesisClient.ModelT - The type (POJO) of Resource model.client - AWS Service Client. Recommend using Sync client as the
framework handles interleaving as needed.model - the resource desired state model, usuallycontext - callback context that tracks all outbound API callsCallChain.Initiatorpublic <ClientT,ModelT,CallbackT extends StdCallbackContext> CallChain.RequestMaker<ClientT,ModelT,CallbackT> initiate(String callGraph, ProxyClient<ClientT> client, ModelT model, CallbackT cxt)
CallChainStdCallbackContext automated replay capabilities.public final long getRemainingTimeInMillis()
public <RequestT extends com.amazonaws.AmazonWebServiceRequest,ResultT extends com.amazonaws.AmazonWebServiceResult<com.amazonaws.ResponseMetadata>> ResultT injectCredentialsAndInvoke(RequestT request,
Function<RequestT,ResultT> requestFunction)
public <RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResultT extends software.amazon.awssdk.awscore.AwsResponse> ResultT injectCredentialsAndInvokeV2(RequestT request,
Function<RequestT,ResultT> requestFunction)
public <RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResultT extends software.amazon.awssdk.awscore.AwsResponse> CompletableFuture<ResultT> injectCredentialsAndInvokeV2Async(RequestT request, Function<RequestT,CompletableFuture<ResultT>> requestFunction)
public <RequestT extends software.amazon.awssdk.awscore.AwsRequest,ResultT extends software.amazon.awssdk.awscore.AwsResponse,IterableT extends software.amazon.awssdk.core.pagination.sync.SdkIterable<ResultT>> IterableT injectCredentialsAndInvokeIterableV2(RequestT request,
Function<RequestT,IterableT> requestFunction)
public <RequestT,ClientT,ModelT,CallbackT extends StdCallbackContext> ProgressEvent<ModelT,CallbackT> defaultHandler(RequestT request, Exception e, ClientT client, ModelT model, CallbackT context) throws Exception
ExceptionCopyright © 2019 Amazon Web Services, Inc. All Rights Reserved.