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:
methodin interfaceAsyncInvoker
-
method
- Specified by:
methodin interfaceAsyncInvoker
-
method
- Specified by:
methodin interfaceAsyncInvoker
-
method
- Specified by:
methodin interfaceAsyncInvoker
-
method
- Specified by:
methodin interfaceAsyncInvoker
-
method
- Specified by:
methodin interfaceAsyncInvoker
-
method
- Specified by:
methodin interfaceAsyncInvoker
-
method
public <T> CompletableFuture<T> method(String name, Entity<?> entity, InvocationCallback<T> callback) - Specified by:
methodin interfaceAsyncInvoker
-
get
- Specified by:
getin interfaceAsyncInvoker
-
put
- Specified by:
putin interfaceAsyncInvoker
-
post
- Specified by:
postin interfaceAsyncInvoker
-
delete
- Specified by:
deletein interfaceAsyncInvoker
-
head
- Specified by:
headin interfaceAsyncInvoker
-
options
- Specified by:
optionsin interfaceAsyncInvoker
-
trace
- Specified by:
tracein interfaceAsyncInvoker
-
get
-
get
-
get
-
put
-
put
-
put
-
post
-
post
-
post
-
delete
-
delete
-
delete
-
head
-
options
-
options
-
options
-
trace
-
trace
-
trace
-