Package org.glassfish.jersey.client
Class JerseyCompletionStageRxInvoker
java.lang.Object
org.glassfish.jersey.client.JerseyCompletionStageRxInvoker
- All Implemented Interfaces:
AsyncInvoker
,CompletionStageRxInvoker
,RxInvoker<CompletionStage>
Implementation of Reactive Invoker for
CompletionStage
.
This class allows for using InvocationCallback
in
Invocation.Builder.rx(JerseyCompletionStageRxInvoker.class)
requests.- Since:
- 2.26
- Author:
- Michal Gajdos
-
Method Summary
Modifier and TypeMethodDescriptiondelete()
<R> CompletableFuture<R>
delete
(InvocationCallback<R> callback) delete
(GenericType<R> responseType) get()
<R> CompletableFuture<R>
get
(InvocationCallback<R> callback) get
(GenericType<R> responseType) head()
head
(InvocationCallback<Response> callback) <T> CompletableFuture<T>
method
(String name, Entity<?> entity, InvocationCallback<T> callback) <T> CompletableFuture<T>
method
(String name, Entity<?> entity, GenericType<T> responseType) <T> CompletableFuture<T>
<T> CompletableFuture<T>
method
(String name, InvocationCallback<T> callback) <T> CompletableFuture<T>
method
(String name, GenericType<T> responseType) <T> CompletableFuture<T>
options()
<R> CompletableFuture<R>
options
(InvocationCallback<R> callback) options
(GenericType<R> responseType) <R> CompletableFuture<R>
post
(Entity<?> entity, InvocationCallback<R> callback) post
(Entity<?> entity, GenericType<R> type) <R> CompletableFuture<R>
put
(Entity<?> entity, InvocationCallback<R> callback) put
(Entity<?> entity, GenericType<R> type) trace()
<R> CompletableFuture<R>
trace
(InvocationCallback<R> callback) trace
(GenericType<R> responseType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
method
- Specified by:
method
in interfaceAsyncInvoker
-
method
- Specified by:
method
in interfaceAsyncInvoker
-
method
- Specified by:
method
in interfaceAsyncInvoker
-
method
- Specified by:
method
in interfaceAsyncInvoker
-
method
- Specified by:
method
in interfaceAsyncInvoker
-
method
- Specified by:
method
in interfaceAsyncInvoker
-
method
- Specified by:
method
in interfaceAsyncInvoker
-
method
public <T> CompletableFuture<T> method(String name, Entity<?> entity, InvocationCallback<T> callback) - Specified by:
method
in interfaceAsyncInvoker
-
get
- Specified by:
get
in interfaceAsyncInvoker
-
put
- Specified by:
put
in interfaceAsyncInvoker
-
post
- Specified by:
post
in interfaceAsyncInvoker
-
delete
- Specified by:
delete
in interfaceAsyncInvoker
-
head
- Specified by:
head
in interfaceAsyncInvoker
-
options
- Specified by:
options
in interfaceAsyncInvoker
-
trace
- Specified by:
trace
in interfaceAsyncInvoker
-
get
-
get
-
get
-
put
-
put
-
put
-
post
-
post
-
post
-
delete
-
delete
-
delete
-
head
-
options
-
options
-
options
-
trace
-
trace
-
trace
-