ResponseT - the response or the fault (Exception) that needs to
handledpublic static interface CallChain.Exceptional<RequestT,ResponseT,ClientT,ModelT,CallbackT extends StdCallbackContext> extends CallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT>
| Modifier and Type | Method and Description |
|---|---|
default CallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT> |
exceptFilter(CallChain.Callback<? super RequestT,Exception,ClientT,ModelT,CallbackT,Boolean> handler)
Deprecated.
|
default CallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT> |
exceptHandler(CallChain.ExceptionPropagate<? super RequestT,Exception,ClientT,ModelT,CallbackT,ProgressEvent<ModelT,CallbackT>> handler)
Deprecated.
|
CallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT> |
handleError(CallChain.ExceptionPropagate<? super RequestT,Exception,ClientT,ModelT,CallbackT,ProgressEvent<ModelT,CallbackT>> handler) |
CallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT> |
retryErrorFilter(CallChain.Callback<? super RequestT,Exception,ClientT,ModelT,CallbackT,Boolean> handler) |
@Deprecated default CallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT> exceptFilter(CallChain.Callback<? super RequestT,Exception,ClientT,ModelT,CallbackT,Boolean> handler)
handler, - a predicate lambda expression that take the web request,
response, client, model and context and says continue or fail
operationCallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT> retryErrorFilter(CallChain.Callback<? super RequestT,Exception,ClientT,ModelT,CallbackT,Boolean> handler)
handler, - a predicate lambda expression that takes the web request,
exception, client, model and context to determine to retry the
exception thrown by the service or fail operation. This is the
simpler model then #handleError(ExceptionPropagate) for
most common retry scenarios If we need more control over the
outcome, then use #handleError(ExceptionPropagate)@Deprecated default CallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT> exceptHandler(CallChain.ExceptionPropagate<? super RequestT,Exception,ClientT,ModelT,CallbackT,ProgressEvent<ModelT,CallbackT>> handler)
handler, - a lambda expression that takes the web request, response,
client, model and context returns a successful or failed
ProgressEvent back or can rethrow service exception to
propagate errors. If handler needs to retry the exception, the it
will throw a
RetryableExceptionCallChain.Completed<RequestT,ResponseT,ClientT,ModelT,CallbackT> handleError(CallChain.ExceptionPropagate<? super RequestT,Exception,ClientT,ModelT,CallbackT,ProgressEvent<ModelT,CallbackT>> handler)
handler, - a lambda expression that take the web request, response,
client, model and context and says continue or fail operation by
providing the appropriate ProgressEvent back.OperationStatus.IN_PROGRESS we will attempt
another retry. Otherwise failure is propagated.Copyright © 2019 Amazon Web Services, Inc. All Rights Reserved.