T
- the asynchronous/event-based completion aware type. The given type should be parametrized with the actual
response type.public abstract class AbstractRxInvoker<T> extends Object implements RxInvoker<T>
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.Constructor and Description |
---|
AbstractRxInvoker(SyncInvoker syncInvoker,
ExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
T |
delete() |
<R> T |
delete(Class<R> responseType) |
<R> T |
delete(GenericType<R> responseType) |
T |
get() |
<R> T |
get(Class<R> responseType) |
<R> T |
get(GenericType<R> responseType) |
protected ExecutorService |
getExecutorService()
Return executorService service this reactive invoker was initialized with.
|
protected SyncInvoker |
getSyncInvoker()
Return invocation builder this reactive invoker was initialized with.
|
T |
head() |
T |
method(String name) |
<R> T |
method(String name,
Class<R> responseType) |
T |
method(String name,
Entity<?> entity) |
abstract <R> T |
method(String name,
Entity<?> entity,
Class<R> responseType) |
abstract <R> T |
method(String name,
Entity<?> entity,
GenericType<R> responseType) |
<R> T |
method(String name,
GenericType<R> responseType) |
T |
options() |
<R> T |
options(Class<R> responseType) |
<R> T |
options(GenericType<R> responseType) |
T |
post(Entity<?> entity) |
<R> T |
post(Entity<?> entity,
Class<R> clazz) |
<R> T |
post(Entity<?> entity,
GenericType<R> type) |
T |
put(Entity<?> entity) |
<R> T |
put(Entity<?> entity,
Class<R> clazz) |
<R> T |
put(Entity<?> entity,
GenericType<R> type) |
T |
trace() |
<R> T |
trace(Class<R> responseType) |
<R> T |
trace(GenericType<R> responseType) |
public AbstractRxInvoker(SyncInvoker syncInvoker, ExecutorService executor)
protected SyncInvoker getSyncInvoker()
protected ExecutorService getExecutorService()
null
.public <R> T method(String name, GenericType<R> responseType)
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)
public abstract <R> T method(String name, Entity<?> entity, GenericType<R> responseType)
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.