Class AbstractRxInvoker<T>
java.lang.Object
org.glassfish.jersey.client.AbstractRxInvoker<T>
- Type Parameters:
T- the asynchronous/event-based completion aware type. The given type should be parametrized with the actual response type.
- All Implemented Interfaces:
javax.ws.rs.client.RxInvoker<T>
- Direct Known Subclasses:
JerseyCompletionStageRxInvoker
public abstract class AbstractRxInvoker<T>
extends Object
implements javax.ws.rs.client.RxInvoker<T>
Default implementation of
. Extensions of this class are
supposed to implement
invalid reference
reactive invoker
RxInvoker.method(String, Entity, Class) and
RxInvoker.method(String, Entity, GenericType) methods to which implementations of the rest
of the methods from the contract delegate to.- Since:
- 2.26
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutorServiceprivate final javax.ws.rs.client.SyncInvoker -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRxInvoker(javax.ws.rs.client.SyncInvoker syncInvoker, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptiondelete()<R> T<R> Tdelete(javax.ws.rs.core.GenericType<R> responseType) get()<R> T<R> Tget(javax.ws.rs.core.GenericType<R> responseType) protected ExecutorServiceReturn executorService service this reactive invoker was initialized with.protected javax.ws.rs.client.SyncInvokerReturn invocation builder this reactive invoker was initialized with.head()<R> T<R> Toptions()<R> T<R> Toptions(javax.ws.rs.core.GenericType<R> responseType) post(javax.ws.rs.client.Entity<?> entity) <R> T<R> Tpost(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.GenericType<R> type) put(javax.ws.rs.client.Entity<?> entity) <R> T<R> Tput(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.GenericType<R> type) trace()<R> T<R> Ttrace(javax.ws.rs.core.GenericType<R> responseType) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.ws.rs.client.RxInvoker
method, method
-
Field Details
-
syncInvoker
private final javax.ws.rs.client.SyncInvoker syncInvoker -
executorService
-
-
Constructor Details
-
AbstractRxInvoker
-
-
Method Details
-
getSyncInvoker
protected javax.ws.rs.client.SyncInvoker getSyncInvoker()Return invocation builder this reactive invoker was initialized with.- Returns:
- non-null invocation builder.
-
getExecutorService
Return executorService service this reactive invoker was initialized with.- Returns:
- executorService service instance or
null.
-
get
-
get
-
get
-
put
-
put
-
put
-
post
-
post
-
post
-
delete
-
delete
-
delete
-
head
-
options
-
options
-
options
-
trace
-
trace
-
trace
-
method
-
method
-
method
-
method
-