Skip to content

Commit 53a8af7

Browse files
authored
Remove Experimental annotations from Update APIs (temporalio#2347)
1 parent e1bef89 commit 53a8af7

13 files changed

+1
-46
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,6 @@ static <A1, A2, A3, A4, A5, A6> WorkflowUpdateHandle<Void> startUpdate(
719719
* @param options update options
720720
* @return WorkflowUpdateHandle that can be used to get the result of the update
721721
*/
722-
@Experimental
723722
static <R> WorkflowUpdateHandle<R> startUpdate(
724723
Functions.Func<R> updateMethod, @Nonnull UpdateOptions<R> options) {
725724
return WorkflowClientInternalImpl.startUpdate(updateMethod, options);
@@ -734,7 +733,6 @@ static <R> WorkflowUpdateHandle<R> startUpdate(
734733
* @param options update options
735734
* @return WorkflowUpdateHandle that can be used to get the result of the update
736735
*/
737-
@Experimental
738736
static <R, A1> WorkflowUpdateHandle<R> startUpdate(
739737
Functions.Func1<A1, R> updateMethod, A1 arg1, @Nonnull UpdateOptions<R> options) {
740738
return WorkflowClientInternalImpl.startUpdate(updateMethod, arg1, options);
@@ -750,7 +748,6 @@ static <R, A1> WorkflowUpdateHandle<R> startUpdate(
750748
* @param options update options
751749
* @return WorkflowUpdateHandle that can be used to get the result of the update
752750
*/
753-
@Experimental
754751
static <R, A1, A2> WorkflowUpdateHandle<R> startUpdate(
755752
Functions.Func2<A1, A2, R> updateMethod,
756753
A1 arg1,
@@ -770,7 +767,6 @@ static <R, A1, A2> WorkflowUpdateHandle<R> startUpdate(
770767
* @param options update options
771768
* @return WorkflowUpdateHandle that can be used to get the result of the update
772769
*/
773-
@Experimental
774770
static <R, A1, A2, A3> WorkflowUpdateHandle<R> startUpdate(
775771
Functions.Func3<A1, A2, A3, R> updateMethod,
776772
A1 arg1,
@@ -792,7 +788,6 @@ static <R, A1, A2, A3> WorkflowUpdateHandle<R> startUpdate(
792788
* @param options update options
793789
* @return WorkflowUpdateHandle that can be used to get the result of the update
794790
*/
795-
@Experimental
796791
static <R, A1, A2, A3, A4> WorkflowUpdateHandle<R> startUpdate(
797792
Functions.Func4<A1, A2, A3, A4, R> updateMethod,
798793
A1 arg1,
@@ -816,7 +811,6 @@ static <R, A1, A2, A3, A4> WorkflowUpdateHandle<R> startUpdate(
816811
* @param options update options
817812
* @return WorkflowUpdateHandle that can be used to get the result of the update
818813
*/
819-
@Experimental
820814
static <R, A1, A2, A3, A4, A5> WorkflowUpdateHandle<R> startUpdate(
821815
Functions.Func5<A1, A2, A3, A4, A5, R> updateMethod,
822816
A1 arg1,
@@ -843,7 +837,6 @@ static <R, A1, A2, A3, A4, A5> WorkflowUpdateHandle<R> startUpdate(
843837
* @param options update options
844838
* @return WorkflowUpdateHandle that can be used to get the result of the update
845839
*/
846-
@Experimental
847840
static <R, A1, A2, A3, A4, A5, A6> WorkflowUpdateHandle<R> startUpdate(
848841
Functions.Func6<A1, A2, A3, A4, A5, A6, R> updateMethod,
849842
A1 arg1,

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ static <T> WorkflowStub fromTyped(T typed) {
9090
* @throws WorkflowServiceException for all other failures including networking and service
9191
* availability issues.
9292
*/
93-
@Experimental
9493
<R> R update(String updateName, Class<R> resultClass, Object... args);
9594

9695
/**
@@ -109,7 +108,6 @@ static <T> WorkflowStub fromTyped(T typed) {
109108
* @throws WorkflowServiceException for all other failures including networking and service
110109
* availability issues.
111110
*/
112-
@Experimental
113111
<R> WorkflowUpdateHandle<R> startUpdate(
114112
String updateName, WorkflowUpdateStage waitForStage, Class<R> resultClass, Object... args);
115113

@@ -125,7 +123,6 @@ <R> WorkflowUpdateHandle<R> startUpdate(
125123
* @throws WorkflowServiceException for all other failures including networking and service
126124
* availability issues.
127125
*/
128-
@Experimental
129126
<R> WorkflowUpdateHandle<R> startUpdate(UpdateOptions<R> options, Object... args);
130127

131128
/**
@@ -137,7 +134,6 @@ <R> WorkflowUpdateHandle<R> startUpdate(
137134
* @param <R> type of the update return value.
138135
* @return update handle that can be used to get the result of the update.
139136
*/
140-
@Experimental
141137
<R> WorkflowUpdateHandle<R> getUpdateHandle(String updateId, Class<R> resultClass);
142138

143139
/**
@@ -151,7 +147,6 @@ <R> WorkflowUpdateHandle<R> startUpdate(
151147
* @param resultType type of the update return value. Differs from resultClass for generic types.
152148
* @return update handle that can be used to get the result of the update.
153149
*/
154-
@Experimental
155150
<R> WorkflowUpdateHandle<R> getUpdateHandle(
156151
String updateId, Class<R> resultClass, Type resultType);
157152

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,8 @@
2121
package io.temporal.client;
2222

2323
import io.temporal.api.common.v1.WorkflowExecution;
24-
import io.temporal.common.Experimental;
2524

26-
/**
27-
* Exception used to communicate failure of an update workflow execution request to an external
28-
* workflow.
29-
*/
30-
@Experimental
25+
/** Exception used to communicate failure of an update workflow execution request. */
3126
public final class WorkflowUpdateException extends WorkflowException {
3227

3328
private final String updateId;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@
2121
package io.temporal.client;
2222

2323
import io.temporal.api.common.v1.WorkflowExecution;
24-
import io.temporal.common.Experimental;
2524
import java.util.concurrent.CompletableFuture;
2625
import java.util.concurrent.TimeUnit;
2726

2827
/**
2928
* WorkflowUpdateHandle is a handle to an update workflow execution request that can be used to get
3029
* the status of that update request.
3130
*/
32-
@Experimental
3331
public interface WorkflowUpdateHandle<T> {
3432
/**
3533
* Gets the workflow execution this update request was sent to.

temporal-sdk/src/main/java/io/temporal/common/interceptors/WorkflowClientCallsInterceptor.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ public interface WorkflowClientCallsInterceptor {
8585

8686
<R> QueryOutput<R> query(QueryInput<R> input);
8787

88-
@Experimental
8988
<R> WorkflowUpdateHandle<R> startUpdate(StartUpdateInput<R> input);
9089

91-
@Experimental
9290
<R> PollWorkflowUpdateOutput<R> pollWorkflowUpdate(PollWorkflowUpdateInput<R> input);
9391

9492
CancelOutput cancel(CancelInput input);
@@ -428,7 +426,6 @@ public WorkflowExecution getWorkflowExecution() {
428426
}
429427
}
430428

431-
@Experimental
432429
final class StartUpdateInput<R> {
433430
private final WorkflowExecution workflowExecution;
434431
private final Optional<String> workflowType;
@@ -505,7 +502,6 @@ public WaitPolicy getWaitPolicy() {
505502
}
506503
}
507504

508-
@Experimental
509505
final class PollWorkflowUpdateInput<R> {
510506
private final WorkflowExecution workflowExecution;
511507
private long timeout;
@@ -561,7 +557,6 @@ public String getUpdateId() {
561557
}
562558
}
563559

564-
@Experimental
565560
final class PollWorkflowUpdateOutput<R> {
566561
private final CompletableFuture<R> result;
567562

temporal-sdk/src/main/java/io/temporal/common/interceptors/WorkflowInboundCallsInterceptor.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ public Object getResult() {
143143
}
144144
}
145145

146-
@Experimental
147146
final class UpdateInput {
148147
private final String updateName;
149148
private final Header header;
@@ -168,7 +167,6 @@ public Object[] getArguments() {
168167
}
169168
}
170169

171-
@Experimental
172170
final class UpdateOutput {
173171
private final Object result;
174172

@@ -212,14 +210,12 @@ public Object getResult() {
212210
* Called when update workflow execution request is delivered to a workflow execution, before the
213211
* update is executed.
214212
*/
215-
@Experimental
216213
void validateUpdate(UpdateInput input);
217214

218215
/**
219216
* Called when update workflow execution request is delivered to a workflow execution, after
220217
* passing the validator.
221218
*/
222-
@Experimental
223219
UpdateOutput executeUpdate(UpdateInput input);
224220

225221
/**

temporal-sdk/src/main/java/io/temporal/common/interceptors/WorkflowOutboundCallsInterceptor.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,6 @@ public List<SignalRegistrationRequest> getRequests() {
552552
}
553553
}
554554

555-
@Experimental
556555
final class UpdateRegistrationRequest {
557556
private final String updateName;
558557
private final String description;
@@ -626,7 +625,6 @@ public Functions.Func1<Object[], Object> getExecuteCallback() {
626625
}
627626
}
628627

629-
@Experimental
630628
final class RegisterUpdateHandlersInput {
631629
private final List<UpdateRegistrationRequest> requests;
632630

@@ -718,7 +716,6 @@ public DynamicSignalHandler getHandler() {
718716
}
719717
}
720718

721-
@Experimental
722719
final class RegisterDynamicUpdateHandlerInput {
723720
private final DynamicUpdateHandler handler;
724721

@@ -769,14 +766,12 @@ <R> R mutableSideEffect(
769766

770767
void registerSignalHandlers(RegisterSignalHandlersInput input);
771768

772-
@Experimental
773769
void registerUpdateHandlers(RegisterUpdateHandlersInput input);
774770

775771
void registerDynamicSignalHandler(RegisterDynamicSignalHandlerInput handler);
776772

777773
void registerDynamicQueryHandler(RegisterDynamicQueryHandlerInput input);
778774

779-
@Experimental
780775
void registerDynamicUpdateHandler(RegisterDynamicUpdateHandlerInput input);
781776

782777
UUID randomUUID();

temporal-sdk/src/main/java/io/temporal/common/metadata/POJOWorkflowImplMetadata.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,11 @@ public List<POJOWorkflowMethodMetadata> getQueryMethods() {
222222
}
223223

224224
/** List of update methods an object implements across all the workflow interfaces. */
225-
@Experimental
226225
public List<POJOWorkflowMethodMetadata> getUpdateMethods() {
227226
return updateMethods;
228227
}
229228

230229
/** List of update validator methods an object implements across all the workflow interfaces. */
231-
@Experimental
232230
public List<POJOWorkflowMethodMetadata> getUpdateValidatorMethods() {
233231
return updateValidatorMethods;
234232
}

temporal-sdk/src/main/java/io/temporal/internal/client/CompletedWorkflowUpdateHandleImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@
2323
import io.temporal.api.common.v1.WorkflowExecution;
2424
import io.temporal.client.WorkflowUpdateException;
2525
import io.temporal.client.WorkflowUpdateHandle;
26-
import io.temporal.common.Experimental;
2726
import java.util.concurrent.CompletableFuture;
2827
import java.util.concurrent.TimeUnit;
2928

30-
@Experimental
3129
public final class CompletedWorkflowUpdateHandleImpl<T> implements WorkflowUpdateHandle<T> {
3230

3331
private final String id;

temporal-sdk/src/main/java/io/temporal/internal/client/LazyWorkflowUpdateHandleImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@
2525
import io.temporal.client.WorkflowException;
2626
import io.temporal.client.WorkflowServiceException;
2727
import io.temporal.client.WorkflowUpdateHandle;
28-
import io.temporal.common.Experimental;
2928
import io.temporal.common.interceptors.WorkflowClientCallsInterceptor;
3029
import io.temporal.serviceclient.CheckedExceptionWrapper;
3130
import java.lang.reflect.Type;
3231
import java.util.concurrent.*;
3332

34-
@Experimental
3533
public final class LazyWorkflowUpdateHandleImpl<T> implements WorkflowUpdateHandle<T> {
3634

3735
private final WorkflowClientCallsInterceptor workflowClientInvoker;

0 commit comments

Comments
 (0)