public class HookProgressEvent<CallbackT> extends Object
| Constructor and Description |
|---|
HookProgressEvent() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canContinueProgress() |
static <CallbackT> |
complete(CallbackT cxt,
String message,
String data) |
static <CallbackT> |
defaultCompleteHandler()
Convenience method for constructing a SUCCESS response
|
static <CallbackT> |
defaultFailureHandler(Throwable e,
HandlerErrorCode handlerErrorCode)
Convenience method for constructing a FAILED response
|
static <CallbackT> |
defaultProgressHandler(CallbackT cxt,
int delaySeconds)
Convenience method for constructing a IN_PROGRESS response
|
static <CallbackT> |
failed(CallbackT cxt,
HandlerErrorCode code,
String message,
String data) |
boolean |
isComplete() |
boolean |
isFailed() |
boolean |
isInProgress() |
boolean |
isInProgressCallbackDelay() |
HookProgressEvent<CallbackT> |
onComplete(Function<HookProgressEvent<CallbackT>,HookProgressEvent<CallbackT>> func) |
static <CallbackT> |
progress(CallbackT cxt,
String message,
String data,
int delaySeconds) |
HookProgressEvent<CallbackT> |
then(Function<HookProgressEvent<CallbackT>,HookProgressEvent<CallbackT>> func) |
public static <CallbackT> HookProgressEvent<CallbackT> defaultFailureHandler(Throwable e, HandlerErrorCode handlerErrorCode)
CallbackT - the type for the callback contexte - actual service exceptionhandlerErrorCode - error code to return to CloudFormationHookProgressEvent failed status codepublic static <CallbackT> HookProgressEvent<CallbackT> failed(CallbackT cxt, HandlerErrorCode code, String message, String data)
public static <CallbackT> HookProgressEvent<CallbackT> defaultProgressHandler(CallbackT cxt, int delaySeconds)
CallbackT - The type for the callback contextcxt - callback contextdelaySeconds - how much time to wait before calling back the handlerHookProgressEvent with HookStatus.IN_PROGRESSpublic static <CallbackT> HookProgressEvent<CallbackT> progress(CallbackT cxt, String message, String data, int delaySeconds)
public static <CallbackT> HookProgressEvent<CallbackT> defaultCompleteHandler()
CallbackT - The type for the callback contextHookProgressEvent with HookStatus.SUCCESS indicating
successful completion for operationpublic static <CallbackT> HookProgressEvent<CallbackT> complete(CallbackT cxt, String message, String data)
public HookProgressEvent<CallbackT> onComplete(Function<HookProgressEvent<CallbackT>,HookProgressEvent<CallbackT>> func)
public boolean isFailed()
public boolean isInProgress()
public boolean canContinueProgress()
public HookProgressEvent<CallbackT> then(Function<HookProgressEvent<CallbackT>,HookProgressEvent<CallbackT>> func)
public boolean isComplete()
public boolean isInProgressCallbackDelay()
Copyright © 2019 Amazon Web Services, Inc. All Rights Reserved.