1010import java .lang .reflect .Type ;
1111import java .util .Optional ;
1212import java .util .concurrent .CompletableFuture ;
13+ import java .util .concurrent .ExecutionException ;
1314import java .util .concurrent .TimeUnit ;
1415import java .util .concurrent .TimeoutException ;
1516import 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 );
0 commit comments