@Beta public final class Rx extends Object
reactive client
or reactive client target instances.| Modifier and Type | Method and Description |
|---|---|
static <RX extends RxInvoker> |
from(javax.ws.rs.client.Client client,
Class<RX> invokerType)
Create a new
reactive client instance initialized with given JAX-RS client
instance and parametrized with provided reactive invocation type. |
static <RX extends RxInvoker> |
from(javax.ws.rs.client.Client client,
Class<RX> invokerType,
ExecutorService executor)
Create a new
reactive client instance initialized with given JAX-RS client
instance and parametrized with provided reactive invocation type. |
static <RX extends RxInvoker> |
from(javax.ws.rs.client.WebTarget target,
Class<RX> invokerType)
Create a new
reactive client target instance initialized with given
JAX-RS client web target instance and parametrized with provided reactive invocation type. |
static <RX extends RxInvoker> |
from(javax.ws.rs.client.WebTarget target,
Class<RX> invokerType,
ExecutorService executor)
Create a new
reactive client target instance initialized with given
JAX-RS client web target instance and parametrized with provided reactive invocation type. |
static <RX extends RxInvoker> |
newClient(Class<RX> invokerType)
Create a new
reactive client instance parametrized with given reactive
invocation type. |
static <RX extends RxInvoker> |
newClient(Class<RX> invokerType,
ExecutorService executor)
Create a new
reactive client instance parametrized with given reactive
invocation type. |
public static <RX extends RxInvoker> RxClient<RX> newClient(Class<RX> invokerType)
reactive client instance parametrized with given reactive
invocation type. Reactive requests, invoked using rx(...) methods, are executed on the
current thread by default.
Instance is initialized with a JAX-RS client created using the default client builder implementation class provided by the
JAX-RS implementation provider.RX - the concrete reactive invocation type.invokerType - the concrete invoker contract.public static <RX extends RxInvoker> RxClient<RX> newClient(Class<RX> invokerType, ExecutorService executor)
reactive client instance parametrized with given reactive
invocation type. Reactive requests, invoked using rx(...) methods, are executed via given
executor service.
Instance is initialized with a JAX-RS client created using the default client builder implementation class provided by the
JAX-RS implementation provider.RX - the concrete reactive invocation type.invokerType - the concrete invoker contract.executor - the executor service to execute reactive requests.public static <RX extends RxInvoker> RxClient<RX> from(javax.ws.rs.client.Client client, Class<RX> invokerType)
reactive client instance initialized with given JAX-RS client
instance and parametrized with provided reactive invocation type. Reactive requests, invoked using
rx(...) methods, are executed on the current thread by default.RX - the concrete reactive invocation type.client - the JAX-RS client used to initialize new reactive client extension.invokerType - the concrete invoker contract.public static <RX extends RxInvoker> RxClient<RX> from(javax.ws.rs.client.Client client, Class<RX> invokerType, ExecutorService executor)
reactive client instance initialized with given JAX-RS client
instance and parametrized with provided reactive invocation type. Reactive requests, invoked using
rx(...) methods, are executed via given
executor service.RX - the concrete reactive invocation type.client - the JAX-RS client used to initialize new reactive client extension.invokerType - the concrete invoker contract.executor - the executor service to execute reactive requests.public static <RX extends RxInvoker> RxWebTarget<RX> from(javax.ws.rs.client.WebTarget target, Class<RX> invokerType)
reactive client target instance initialized with given
JAX-RS client web target instance and parametrized with provided reactive invocation type. Reactive requests, invoked using
rx(...) methods, are executed on the current thread by default.RX - the concrete reactive invocation type.target - the JAX-RS client target used to initialize new reactive client target extension.invokerType - the concrete invoker contract.public static <RX extends RxInvoker> RxWebTarget<RX> from(javax.ws.rs.client.WebTarget target, Class<RX> invokerType, ExecutorService executor)
reactive client target instance initialized with given
JAX-RS client web target instance and parametrized with provided reactive invocation type. Reactive requests, invoked using
rx(...) methods, are executed via given
executor service.RX - the concrete reactive invocation type.target - the JAX-RS client target used to initialize new reactive client target extension.invokerType - the concrete invoker contract.executor - the executor service to execute reactive requests.Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.