|
1 | 1 | package io.nexusrpc.handler; |
2 | 2 |
|
3 | 3 | import io.nexusrpc.OperationException; |
4 | | -import io.nexusrpc.OperationInfo; |
5 | | -import io.nexusrpc.OperationStillRunningException; |
6 | 4 | import org.jspecify.annotations.Nullable; |
7 | 5 |
|
8 | 6 | /** |
@@ -47,41 +45,6 @@ OperationStartResult<R> start( |
47 | 45 | OperationContext context, OperationStartDetails details, @Nullable T param) |
48 | 46 | throws OperationException, HandlerException; |
49 | 47 |
|
50 | | - /** |
51 | | - * Fetch the result for an asynchronously started operation. |
52 | | - * |
53 | | - * @param context Context for the call. |
54 | | - * @param details Details for the call including the operation token. The details also contain a |
55 | | - * timeout which affects how implementers should implement this function. See {@link |
56 | | - * OperationFetchResultDetails#getTimeout()} to see how to react to this value. |
57 | | - * @return The resulting value upon success. |
58 | | - * @throws OperationStillRunningException Operation is still running beyond the given timeout. |
59 | | - * @throws OperationException Operation failed. If thrown, can have failure details and state such |
60 | | - * as saying the operation was cancelled. |
61 | | - * @throws HandlerException Unexpected failures while running the handler. This should be thrown |
62 | | - * with a type of {@link HandlerException.ErrorType#NOT_FOUND} if the operation token is not |
63 | | - * found. |
64 | | - * @throws RuntimeException Any other exception, will be converted to an {@link HandlerException} |
65 | | - * of type {@link HandlerException.ErrorType#INTERNAL}. |
66 | | - */ |
67 | | - @Nullable R fetchResult(OperationContext context, OperationFetchResultDetails details) |
68 | | - throws OperationStillRunningException, OperationException, HandlerException; |
69 | | - |
70 | | - /** |
71 | | - * Fetch information about the asynchronously started operation. |
72 | | - * |
73 | | - * @param context Context for the call. |
74 | | - * @param details Details for the call including the operation token. |
75 | | - * @return Information about the operation. |
76 | | - * @throws HandlerException Unexpected failures while running the handler. This should be thrown |
77 | | - * with a type of {@link HandlerException.ErrorType#NOT_FOUND} if the operation token is not |
78 | | - * found. |
79 | | - * @throws RuntimeException Any other exception, will be converted to an {@link HandlerException} |
80 | | - * of type {@link HandlerException.ErrorType#INTERNAL}. |
81 | | - */ |
82 | | - OperationInfo fetchInfo(OperationContext context, OperationFetchInfoDetails details) |
83 | | - throws HandlerException; |
84 | | - |
85 | 48 | /** |
86 | 49 | * Cancel the asynchronously started operation. |
87 | 50 | * |
|
0 commit comments