public interface ActivityCompletionClient
Activity.doNotCompleteOnReturn()
.
Use WorkflowClient.newActivityCompletionClient()
to create an instance. TODO: Throw
relevant exceptions like EntityNotExists, etc.
Modifier and Type | Method and Description |
---|---|
<R> void |
complete(byte[] taskToken,
R result) |
<R> void |
complete(io.temporal.proto.execution.WorkflowExecution execution,
java.lang.String activityId,
R result) |
void |
completeExceptionally(byte[] taskToken,
java.lang.Exception result) |
void |
completeExceptionally(io.temporal.proto.execution.WorkflowExecution execution,
java.lang.String activityId,
java.lang.Exception result) |
<V> void |
heartbeat(byte[] taskToken,
V details) |
<V> void |
heartbeat(io.temporal.proto.execution.WorkflowExecution execution,
java.lang.String activityId,
V details)
Warning: heartbeating by ids is not implemented yet.
|
<V> void |
reportCancellation(byte[] taskToken,
V details) |
<V> void |
reportCancellation(io.temporal.proto.execution.WorkflowExecution execution,
java.lang.String activityId,
V details) |
<R> void complete(byte[] taskToken, R result) throws ActivityCompletionException
ActivityCompletionException
<R> void complete(io.temporal.proto.execution.WorkflowExecution execution, java.lang.String activityId, R result) throws ActivityCompletionException
ActivityCompletionException
void completeExceptionally(byte[] taskToken, java.lang.Exception result) throws ActivityCompletionException
ActivityCompletionException
void completeExceptionally(io.temporal.proto.execution.WorkflowExecution execution, java.lang.String activityId, java.lang.Exception result) throws ActivityCompletionException
ActivityCompletionException
<V> void reportCancellation(byte[] taskToken, V details) throws ActivityCompletionException
ActivityCompletionException
<V> void reportCancellation(io.temporal.proto.execution.WorkflowExecution execution, java.lang.String activityId, V details) throws ActivityCompletionException
ActivityCompletionException
<V> void heartbeat(byte[] taskToken, V details) throws ActivityCompletionException
ActivityCompletionException
<V> void heartbeat(io.temporal.proto.execution.WorkflowExecution execution, java.lang.String activityId, V details) throws ActivityCompletionException
java.util.concurrent.CancellationException
- if activity is cancelled.ActivityCompletionException