Package org.glassfish.jersey.client
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:
RxInvoker<T>
Default implementation of
reactive invoker
. Extensions of this class are
supposed to implement method(String, Entity, Class)
and
method(String, Entity, GenericType)
methods to which implementations of the rest
of the methods from the contract delegate to.- Since:
- 2.26
- Author:
- Michal Gajdos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondelete()
<R> T
delete
(GenericType<R> responseType) <R> T
get()
<R> T
get
(GenericType<R> responseType) <R> T
protected ExecutorService
Return executorService service this reactive invoker was initialized with.protected SyncInvoker
Return invocation builder this reactive invoker was initialized with.head()
abstract <R> T
method
(String name, Entity<?> entity, GenericType<R> responseType) abstract <R> T
<R> T
method
(String name, GenericType<R> responseType) <R> T
options()
<R> T
options
(GenericType<R> responseType) <R> T
<R> T
post
(Entity<?> entity, GenericType<R> type) <R> T
<R> T
put
(Entity<?> entity, GenericType<R> type) <R> T
trace()
<R> T
trace
(GenericType<R> responseType) <R> T
-
Constructor Details
-
AbstractRxInvoker
-
-
Method Details
-
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
.
-
method
-
method
-
method
-
method
-
get
-
get
-
get
-
put
-
put
-
put
-
post
-
post
-
post
-
delete
-
delete
-
delete
-
head
-
options
-
options
-
options
-
trace
-
trace
-
trace
-
method
-
method
-