public final class RxCompletableFuture extends Object
reactive client
or reactive client target
instances based on JSR-166e's (pre-Java 8)
completable future
.Rx
Modifier and Type | Method and Description |
---|---|
static RxClient<RxCompletableFutureInvoker> |
from(Client client)
Create a new
reactive client instance initialized with given JAX-RS client
instance and parametrized with invoker based on the completable
future from
JSR-166e (pre-Java 8). |
static RxClient<RxCompletableFutureInvoker> |
from(Client client,
ExecutorService executor)
Create a new
reactive client instance initialized with given JAX-RS client
instance and parametrized with invoker based on the completable
future from
JSR-166e (pre-Java 8). |
static RxWebTarget<RxCompletableFutureInvoker> |
from(WebTarget target)
Create a new
reactive client target instance initialized with given
JAX-RS client web target instance and parametrized with invoker based on the
completable future from JSR-166e (pre-Java 8). |
static RxWebTarget<RxCompletableFutureInvoker> |
from(WebTarget target,
ExecutorService executor)
Create a new
reactive client target instance initialized with given
JAX-RS client web target instance and parametrized with invoker based on the
completable future from JSR-166e (pre-Java 8). |
static RxClient<RxCompletableFutureInvoker> |
newClient()
Create a new
reactive client instance parametrized with invoker based on
the completable future from JSR-166e (pre-Java 8). |
static RxClient<RxCompletableFutureInvoker> |
newClient(ExecutorService executor)
Create a new
reactive client instance parametrized with invoker based on
the completable future from JSR-166e (pre-Java 8). |
public static RxClient<RxCompletableFutureInvoker> newClient()
reactive client
instance parametrized with invoker based on
the completable future
from JSR-166e (pre-Java 8). Reactive requests,
invoked using rx(...)
methods, are executed via
"common thread pool" 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.newClient(Class)
public static RxClient<RxCompletableFutureInvoker> newClient(ExecutorService executor)
reactive client
instance parametrized with invoker based on
the completable future
from JSR-166e (pre-Java 8). Reactive requests,
invoked using rx(...)
method, 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.executor
- the executor service to execute reactive requests.Rx.newClient(Class, java.util.concurrent.ExecutorService)
public static RxClient<RxCompletableFutureInvoker> from(Client client)
reactive client
instance initialized with given JAX-RS client
instance and parametrized with invoker based on the completable
future
from
JSR-166e (pre-Java 8). Reactive requests, invoked using
rx(...)
methods, are executed via
"common thread pool" service
.client
- the JAX-RS client used to initialize new reactive client extension.Rx.from(javax.ws.rs.client.Client, Class)
public static RxClient<RxCompletableFutureInvoker> from(Client client, ExecutorService executor)
reactive client
instance initialized with given JAX-RS client
instance and parametrized with invoker based on the completable
future
from
JSR-166e (pre-Java 8). Reactive requests, invoked using
rx(...)
method, are executed via given
executor service
.client
- the JAX-RS client used to initialize new reactive client extension.executor
- the executor service to execute reactive requests.Rx.from(javax.ws.rs.client.Client, Class, java.util.concurrent.ExecutorService)
public static RxWebTarget<RxCompletableFutureInvoker> from(WebTarget target)
reactive client target
instance initialized with given
JAX-RS client web target instance and parametrized with invoker based on the
completable future
from JSR-166e (pre-Java 8). Reactive requests,
invoked using
rx(...)
methods, are executed via
"common thread pool" service
.target
- the JAX-RS client target used to initialize new reactive client target extension.Rx.from(javax.ws.rs.client.WebTarget, Class)
public static RxWebTarget<RxCompletableFutureInvoker> from(WebTarget target, ExecutorService executor)
reactive client target
instance initialized with given
JAX-RS client web target instance and parametrized with invoker based on the
completable future
from JSR-166e (pre-Java 8). Reactive requests,
invoked using
rx(...)
method, are executed via given
executor service
.target
- the JAX-RS client target used to initialize new reactive client target extension.executor
- the executor service to execute reactive requests.Rx.from(javax.ws.rs.client.WebTarget, Class, java.util.concurrent.ExecutorService)
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.