3636@ Experimental
3737public interface ActivityClient {
3838
39- // ---- Static factories ----
40-
4139 /** Creates a new {@code ActivityClient} with default options. */
4240 static ActivityClient newInstance (WorkflowServiceStubs stubs ) {
4341 return newInstance (stubs , ActivityClientOptions .getDefaultInstance ());
@@ -48,8 +46,6 @@ static ActivityClient newInstance(WorkflowServiceStubs stubs, ActivityClientOpti
4846 return new ActivityClientImpl (stubs , options );
4947 }
5048
51- // ---- Interface-based start (abstract) ----
52-
5349 /**
5450 * Starts a standalone activity using a typed interface and an unbound method reference, and
5551 * returns a typed handle. The activity type name and result type are inferred from the method
@@ -425,8 +421,6 @@ <I, A1, A2, A3, A4, A5, A6, R> ActivityHandle<R> start(
425421 A6 arg6 )
426422 throws ActivityAlreadyStartedException ;
427423
428- // ---- Interface-based execute (default) ----
429-
430424 /**
431425 * Starts a standalone activity using a typed interface and an unbound method reference with no
432426 * activity arguments, and blocks until it completes.
@@ -816,8 +810,6 @@ default <I, A1, A2, A3, A4, A5, A6, R> R execute(
816810 .getResult ();
817811 }
818812
819- // ---- Interface-based executeAsync (default) ----
820-
821813 /**
822814 * Starts a standalone activity using a typed interface and an unbound method reference with no
823815 * activity arguments, and returns a future that completes when the activity does.
@@ -1189,8 +1181,6 @@ default <I, A1, A2, A3, A4, A5, A6, R> CompletableFuture<R> executeAsync(
11891181 .getResultAsync ();
11901182 }
11911183
1192- // ---- String-based start ----
1193-
11941184 /**
11951185 * Starts a standalone activity by type name and returns an untyped handle to it.
11961186 *
@@ -1242,8 +1232,6 @@ <R> ActivityHandle<R> start(
12421232 @ Nullable Object ... args )
12431233 throws ActivityAlreadyStartedException ;
12441234
1245- // ---- String-based execute (synchronous) ----
1246-
12471235 /**
12481236 * Starts a standalone activity and blocks until it completes, discarding the result.
12491237 *
@@ -1293,8 +1281,6 @@ <R> R execute(
12931281 @ Nullable Object ... args )
12941282 throws ActivityFailedException ;
12951283
1296- // ---- String-based executeAsync ----
1297-
12981284 /**
12991285 * Starts a standalone activity and returns a future that completes when the activity does,
13001286 * discarding the result.
@@ -1341,8 +1327,6 @@ <R> CompletableFuture<R> executeAsync(
13411327 StartActivityOptions options ,
13421328 @ Nullable Object ... args );
13431329
1344- // ---- Handle lookup ----
1345-
13461330 /**
13471331 * Returns an untyped handle to an existing standalone activity execution.
13481332 *
@@ -1380,8 +1364,6 @@ <R> ActivityHandle<R> getHandle(
13801364 Class <R > resultClass ,
13811365 @ Nullable Type resultType );
13821366
1383- // ---- List / count ----
1384-
13851367 /**
13861368 * Returns a stream of activity executions matching the given query.
13871369 *
0 commit comments