Skip to content

Commit c1db214

Browse files
authored
Deprecate HttpExecutionStrategy.invokeService (#1720)
Motivation: The `invokeService` method is to be obsoleted by the upcoming OffloadingFilter Modifications: `invokeService()` is deprecated Result: Warning provided of future method removal.
1 parent 0eba909 commit c1db214

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

servicetalk-http-api/src/main/java/io/servicetalk/http/api/HttpExecutionStrategy.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ <FS> Single<StreamingHttpResponse> invokeClient(Executor fallback, Publisher<Obj
5454
* {@link Publisher} containing all data constituting an HTTP response.
5555
* @param errorHandler In case there is an error before calling the passed {@code service}, this {@link BiFunction}
5656
* will be called to generate an error response.
57-
* @return A flattened {@link Publisher} containing all data constituting an HTTP response..
57+
* @return A flattened {@link Publisher} containing all data constituting an HTTP response.
58+
*
59+
* @deprecated Will be removed as part of improved offloading strategy. If you need this API please file an issue
60+
* explaining the use case.
5861
*/
62+
@Deprecated
5963
Publisher<Object> invokeService(Executor fallback, StreamingHttpRequest request,
6064
Function<StreamingHttpRequest, Publisher<Object>> service,
6165
BiFunction<Throwable, Executor, Publisher<Object>> errorHandler);

0 commit comments

Comments
 (0)