public class ProgressEvent<ResourceT,CallbackT> extends Object
| Constructor and Description |
|---|
ProgressEvent() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canContinueProgress() |
static <ResourceT,CallbackT> |
defaultFailureHandler(Throwable e,
HandlerErrorCode handlerErrorCode)
Convenience method for constructing a FAILED response
|
static <ResourceT,CallbackT> |
defaultInProgressHandler(CallbackT callbackContext,
int callbackDelaySeconds,
ResourceT resourceModel)
Convenience method for constructing a IN_PROGRESS response
|
static <ResourceT,CallbackT> |
defaultSuccessHandler(ResourceT resourceModel)
Convenience method for constructing a SUCCESS response
|
static <ResourceT,CallbackT> |
failed(ResourceT model,
CallbackT cxt,
HandlerErrorCode code,
String message) |
boolean |
isFailed() |
boolean |
isInProgress() |
boolean |
isInProgressCallbackDelay() |
boolean |
isSuccess() |
ProgressEvent<ResourceT,CallbackT> |
onSuccess(Function<ProgressEvent<ResourceT,CallbackT>,ProgressEvent<ResourceT,CallbackT>> func) |
static <ResourceT,CallbackT> |
progress(ResourceT model,
CallbackT cxt) |
static <ResourceT,CallbackT> |
success(ResourceT model,
CallbackT cxt) |
ProgressEvent<ResourceT,CallbackT> |
then(Function<ProgressEvent<ResourceT,CallbackT>,ProgressEvent<ResourceT,CallbackT>> func) |
public static <ResourceT,CallbackT> ProgressEvent<ResourceT,CallbackT> defaultFailureHandler(Throwable e, HandlerErrorCode handlerErrorCode)
ResourceT - The type for the resource modelCallbackT - the type for the callback contexte - actual service exceptionhandlerErrorCode - error code to return to CloudFormationProgressEvent failed status codepublic static <ResourceT,CallbackT> ProgressEvent<ResourceT,CallbackT> failed(ResourceT model, CallbackT cxt, HandlerErrorCode code, String message)
public static <ResourceT,CallbackT> ProgressEvent<ResourceT,CallbackT> defaultInProgressHandler(CallbackT callbackContext, int callbackDelaySeconds, ResourceT resourceModel)
ResourceT - The type for the resource modelCallbackT - the type for the callback contextcallbackContext - callback contextcallbackDelaySeconds - how much time to wait before calling back the
handlerresourceModel - the actual resource model stateProgressEvent with OperationStatus.IN_PROGRESS with
delaypublic static <ResourceT,CallbackT> ProgressEvent<ResourceT,CallbackT> progress(ResourceT model, CallbackT cxt)
public static <ResourceT,CallbackT> ProgressEvent<ResourceT,CallbackT> defaultSuccessHandler(ResourceT resourceModel)
ResourceT - The type for the resource modelCallbackT - the type for the callback contextresourceModel - the current resource model stateProgressEvent with OperationStatus.SUCCESS indicating
successful completion for operationpublic static <ResourceT,CallbackT> ProgressEvent<ResourceT,CallbackT> success(ResourceT model, CallbackT cxt)
public ProgressEvent<ResourceT,CallbackT> onSuccess(Function<ProgressEvent<ResourceT,CallbackT>,ProgressEvent<ResourceT,CallbackT>> func)
public boolean isFailed()
public boolean isInProgress()
public boolean canContinueProgress()
public ProgressEvent<ResourceT,CallbackT> then(Function<ProgressEvent<ResourceT,CallbackT>,ProgressEvent<ResourceT,CallbackT>> func)
public boolean isSuccess()
public boolean isInProgressCallbackDelay()
Copyright © 2019 Amazon Web Services, Inc. All Rights Reserved.