public abstract class ExternalTask extends Object
ExternalTask#doExecute(handle)
method is expected to initiate
call to an external API and return without blocking. Then completion or
failure of the external task is reported through
ExternalTaskCompletionHandle
. A cancellation handler returned by the
doExecute is used to report cancellation of the external task.Constructor and Description |
---|
ExternalTask(com.amazonaws.services.simpleworkflow.flow.core.AsyncContextAware parent,
boolean daemon,
Promise<?>... waitFor) |
ExternalTask(com.amazonaws.services.simpleworkflow.flow.core.AsyncContextAware parent,
Promise<?>... waitFor) |
ExternalTask(boolean daemon,
Promise<?>... waitFor) |
ExternalTask(Promise<?>... waitFor) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
StackTraceElement[] |
getStackTrace() |
void |
setName(String name) |
public ExternalTask(Promise<?>... waitFor)
public ExternalTask(boolean daemon, Promise<?>... waitFor)
public ExternalTask(com.amazonaws.services.simpleworkflow.flow.core.AsyncContextAware parent, Promise<?>... waitFor)
public ExternalTask(com.amazonaws.services.simpleworkflow.flow.core.AsyncContextAware parent, boolean daemon, Promise<?>... waitFor)
public String getName()
public void setName(String name)
public StackTraceElement[] getStackTrace()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.