public interface ActivityCompletionClient
ActivityExecutionContext.doNotCompleteOnReturn()
.
Use WorkflowClient.newActivityCompletionClient()
to create an instance.
Modifier and Type | Method and Description |
---|---|
<R> void |
complete(byte[] taskToken,
R result) |
<R> void |
complete(java.lang.String workflowId,
java.util.Optional<java.lang.String> runId,
java.lang.String activityId,
R result) |
void |
completeExceptionally(byte[] taskToken,
java.lang.Exception result) |
void |
completeExceptionally(java.lang.String workflowId,
java.util.Optional<java.lang.String> runId,
java.lang.String activityId,
java.lang.Exception result) |
<V> void |
heartbeat(byte[] taskToken,
V details) |
<V> void |
heartbeat(java.lang.String workflowId,
java.util.Optional<java.lang.String> runId,
java.lang.String activityId,
V details) |
<V> void |
reportCancellation(byte[] taskToken,
V details) |
<V> void |
reportCancellation(java.lang.String workflowId,
java.util.Optional<java.lang.String> runId,
java.lang.String activityId,
V details) |
<R> void complete(byte[] taskToken, R result) throws ActivityCompletionException
ActivityCompletionException
<R> void complete(java.lang.String workflowId, java.util.Optional<java.lang.String> runId, java.lang.String activityId, R result) throws ActivityCompletionException
ActivityCompletionException
void completeExceptionally(byte[] taskToken, java.lang.Exception result) throws ActivityCompletionException
ActivityCompletionException
void completeExceptionally(java.lang.String workflowId, java.util.Optional<java.lang.String> runId, java.lang.String activityId, java.lang.Exception result) throws ActivityCompletionException
ActivityCompletionException
<V> void reportCancellation(byte[] taskToken, V details) throws ActivityCompletionException
ActivityCompletionException
<V> void reportCancellation(java.lang.String workflowId, java.util.Optional<java.lang.String> runId, java.lang.String activityId, V details) throws ActivityCompletionException
ActivityCompletionException
<V> void heartbeat(byte[] taskToken, V details) throws ActivityCompletionException
ActivityCompletionException
<V> void heartbeat(java.lang.String workflowId, java.util.Optional<java.lang.String> runId, java.lang.String activityId, V details) throws ActivityCompletionException
ActivityCompletionException
- if activity should stop executing