Skip to content

Commit bc30456

Browse files
committed
Progress checkin
1 parent 8f49ebc commit bc30456

12 files changed

Lines changed: 670 additions & 709 deletions

temporal-sdk/src/main/java/io/temporal/client/NexusClient.java

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package io.temporal.client;
22

3-
import io.temporal.client.NexusClientInterceptor.CountNexusOperationExecutionsInput;
4-
import io.temporal.client.NexusClientInterceptor.CountNexusOperationExecutionsOutput;
5-
import io.temporal.client.NexusClientInterceptor.ListNexusOperationExecutionsInput;
6-
import io.temporal.client.NexusClientInterceptor.ListNexusOperationExecutionsOutput;
7-
import io.temporal.client.NexusClientInterceptor.StartNexusOperationExecutionInput;
8-
import io.temporal.client.NexusClientInterceptor.StartNexusOperationExecutionOutput;
3+
import io.temporal.client.NexusClientCallsInterceptor.CountNexusOperationExecutionsInput;
4+
import io.temporal.client.NexusClientCallsInterceptor.CountNexusOperationExecutionsOutput;
5+
import io.temporal.client.NexusClientCallsInterceptor.ListNexusOperationExecutionsInput;
6+
import io.temporal.client.NexusClientCallsInterceptor.ListNexusOperationExecutionsOutput;
7+
import io.temporal.client.NexusClientCallsInterceptor.StartNexusOperationExecutionInput;
8+
import io.temporal.client.NexusClientCallsInterceptor.StartNexusOperationExecutionOutput;
99
import io.temporal.common.Experimental;
1010
import io.temporal.serviceclient.WorkflowServiceStubs;
1111
import javax.annotation.Nullable;
@@ -27,11 +27,17 @@ static NexusClient newInstance(
2727
return NexusClientImpl.newInstance(service, options);
2828
}
2929

30-
/** Obtain a handle to an existing operation; targets the latest run. */
31-
NexusClientHandle getHandle(String operationId);
32-
33-
/** Obtain a handle to an existing operation, optionally pinned to a specific run. */
34-
NexusClientHandle getHandle(String operationId, @Nullable String runId);
30+
/**
31+
* Obtain an untyped handle to an existing operation; targets the latest run. To bind a result
32+
* type, wrap the returned handle with {@link NexusClientHandle#fromUntyped}.
33+
*/
34+
UntypedNexusClientHandle getHandle(String operationId);
35+
36+
/**
37+
* Obtain an untyped handle to an existing operation, optionally pinned to a specific run. To bind
38+
* a result type, wrap the returned handle with {@link NexusClientHandle#fromUntyped}.
39+
*/
40+
UntypedNexusClientHandle getHandle(String operationId, @Nullable String runId);
3541

3642
UntypedNexusServiceClient newUntypeNexusServiceClient();
3743

0 commit comments

Comments
 (0)