Skip to content

Commit 0ad6452

Browse files
committed
Fix removed links
1 parent b8a9894 commit 0ad6452

2 files changed

Lines changed: 22 additions & 14 deletions

File tree

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

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import java.lang.reflect.Type;
1111
import java.util.Optional;
1212
import java.util.concurrent.CompletableFuture;
13+
import java.util.concurrent.ExecutionException;
1314
import java.util.concurrent.TimeUnit;
1415
import java.util.concurrent.TimeoutException;
1516
import javax.annotation.Nullable;
@@ -268,11 +269,13 @@ <R> R getResult(long timeout, TimeUnit unit, Class<R> resultClass, Type resultTy
268269
* to complete. Behind the scenes this call performs long polls the Temporal Server waiting for
269270
* workflow completion.
270271
*
272+
* <p>See {@link #getResult(Class)} as a sync version of this method for detailed information
273+
* about exceptions that may be thrown from {@link CompletableFuture#get()} wrapped by {@link
274+
* ExecutionException}.
275+
*
271276
* @param resultClass class of the workflow return value
272277
* @param <R> type of the workflow return value
273278
* @return future completed with workflow return value or an exception
274-
* @see #getResult(Class) as a sync version of this method for detailed information about
275-
* exceptions that may be thrown from CompletableFuture.get() wrapped by ExecutionException
276279
*/
277280
<R> CompletableFuture<R> getResultAsync(Class<R> resultClass);
278281

@@ -281,13 +284,15 @@ <R> R getResult(long timeout, TimeUnit unit, Class<R> resultClass, Type resultTy
281284
* to complete. Behind the scene this call performs long poll on Temporal service waiting for
282285
* workflow completion notification.
283286
*
287+
* <p>See {@link #getResult(Class, Type)} as a sync version of this method for detailed
288+
* information about exceptions that may be thrown from {@link CompletableFuture#get()} wrapped by
289+
* {@link ExecutionException}.
290+
*
284291
* @param resultClass class of the workflow return value
285292
* @param resultType type of the workflow return value. Differs from {@code resultClass} for
286293
* generic types.
287294
* @param <R> type of the workflow return value
288295
* @return future completed with workflow return value or an exception
289-
* @see #getResult(Class, Type) as a sync version of this method for detailed information about
290-
* exceptions that may be thrown from CompletableFuture.get() wrapped by ExecutionException
291296
*/
292297
<R> CompletableFuture<R> getResultAsync(Class<R> resultClass, Type resultType);
293298

@@ -296,14 +301,15 @@ <R> R getResult(long timeout, TimeUnit unit, Class<R> resultClass, Type resultTy
296301
* to complete. Behind the scene this call performs long poll on Temporal service waiting for
297302
* workflow completion notification.
298303
*
304+
* <p>See {@link #getResult(long, TimeUnit, Class)} as a sync version of this method for detailed
305+
* information about exceptions that may be thrown from {@link CompletableFuture#get()} wrapped by
306+
* {@link ExecutionException}.
307+
*
299308
* @param timeout maximum time to wait and perform a background long poll
300309
* @param unit unit of timeout
301310
* @param resultClass class of the workflow return value
302311
* @param <R> type of the workflow return value
303312
* @return future completed with workflow return value or an exception
304-
* @see #getResult(long, TimeUnit, Class) as a sync version of this method for detailed
305-
* information about exceptions that may be thrown from CompletableFuture.get() wrapped by
306-
* ExecutionException
307313
*/
308314
<R> CompletableFuture<R> getResultAsync(long timeout, TimeUnit unit, Class<R> resultClass);
309315

@@ -312,16 +318,17 @@ <R> R getResult(long timeout, TimeUnit unit, Class<R> resultClass, Type resultTy
312318
* to complete. Behind the scene this call performs long poll on Temporal service waiting for
313319
* workflow completion notification.
314320
*
321+
* <p>See {@link #getResult(long, TimeUnit, Class, Type)} as a sync version of this method for
322+
* detailed information about exceptions that may be thrown from {@link CompletableFuture#get()}
323+
* wrapped by {@link ExecutionException}.
324+
*
315325
* @param timeout maximum time to wait and perform a background long poll
316326
* @param unit unit of timeout
317327
* @param resultClass class of the workflow return value
318328
* @param resultType type of the workflow return value. Differs from {@code resultClass} for
319329
* generic types.
320330
* @param <R> type of the workflow return value
321331
* @return future completed with workflow return value or an exception
322-
* @see #getResult(long, TimeUnit, Class, Type) as a sync version of this method for detailed
323-
* information about exceptions that may be thrown from CompletableFuture.get() wrapped by
324-
* ExecutionException
325332
*/
326333
<R> CompletableFuture<R> getResultAsync(
327334
long timeout, TimeUnit unit, Class<R> resultClass, Type resultType);

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
* <p>The implementation must forward all the calls to {@code next}, but it may change the input
2222
* parameters.
2323
*
24-
* @see WorkerInterceptor#interceptWorkflow(WorkflowInboundCallsInterceptor) for a definition of
25-
* "next" WorkflowInboundCallsInterceptor
24+
* <p>See {@link WorkerInterceptor#interceptWorkflow(WorkflowInboundCallsInterceptor)} for a
25+
* definition of "next" {@link WorkflowInboundCallsInterceptor}.
2626
*/
2727
@Experimental
2828
public interface WorkflowInboundCallsInterceptor {
@@ -166,10 +166,11 @@ public Object getResult() {
166166
*
167167
* <p>The instance should be passed into the {next.init(newWorkflowOutboundCallsInterceptor)}.
168168
*
169+
* <p>See {@link WorkerInterceptor#interceptWorkflow} for the definition of "next" {@link
170+
* WorkflowInboundCallsInterceptor}.
171+
*
169172
* @param outboundCalls an existing interceptor instance to be proxied by the interceptor created
170173
* inside this method
171-
* @see WorkerInterceptor#interceptWorkflow for the definition of "next"
172-
* WorkflowInboundCallsInterceptor
173174
*/
174175
void init(WorkflowOutboundCallsInterceptor outboundCalls);
175176

0 commit comments

Comments
 (0)