public class JerseyCompletionStageRxInvoker extends Object implements CompletionStageRxInvoker
CompletionStage
.
This class allows for using InvocationCallback
in
Invocation.Builder.rx(JerseyCompletionStageRxInvoker.class)
requests.clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public CompletableFuture<Response> method(String name)
method
in interface AsyncInvoker
public <T> CompletableFuture<T> method(String name, Class<T> responseType)
method
in interface AsyncInvoker
public <T> CompletableFuture<T> method(String name, GenericType<T> responseType)
method
in interface AsyncInvoker
public <T> CompletableFuture<T> method(String name, InvocationCallback<T> callback)
method
in interface AsyncInvoker
public CompletableFuture<Response> method(String name, Entity<?> entity)
method
in interface AsyncInvoker
public <T> CompletableFuture<T> method(String name, Entity<?> entity, Class<T> responseType)
method
in interface AsyncInvoker
public <T> CompletableFuture<T> method(String name, Entity<?> entity, GenericType<T> responseType)
method
in interface AsyncInvoker
public <T> CompletableFuture<T> method(String name, Entity<?> entity, InvocationCallback<T> callback)
method
in interface AsyncInvoker
public <R> CompletableFuture<R> get(InvocationCallback<R> callback)
get
in interface AsyncInvoker
public <R> CompletableFuture<R> put(Entity<?> entity, InvocationCallback<R> callback)
put
in interface AsyncInvoker
public <R> CompletableFuture<R> post(Entity<?> entity, InvocationCallback<R> callback)
post
in interface AsyncInvoker
public <R> CompletableFuture<R> delete(InvocationCallback<R> callback)
delete
in interface AsyncInvoker
public CompletableFuture<Response> head(InvocationCallback<Response> callback)
head
in interface AsyncInvoker
public <R> CompletableFuture<R> options(InvocationCallback<R> callback)
options
in interface AsyncInvoker
public <R> CompletableFuture<R> trace(InvocationCallback<R> callback)
trace
in interface AsyncInvoker
public T get()
public <R> T get(GenericType<R> responseType)
public <R> T put(Entity<?> entity, GenericType<R> type)
public <R> T post(Entity<?> entity, GenericType<R> type)
public T delete()
public <R> T delete(GenericType<R> responseType)
public T head()
public T options()
public <R> T options(GenericType<R> responseType)
public T trace()
public <R> T trace(GenericType<R> responseType)
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.