@Contract @ConstrainedTo(value=CLIENT) public interface RxInvokerProvider
reactive invokerinstances. If supported by the provider, an invoker instance of the requested Java type will be created. A provider shall support a one-to-one mapping between a type, provided the type is not
Object. A provider may also support mapping of sub-types of a type (provided the type is not
Object). It is expected that each provider supports mapping for distinct set of types and subtypes so that different providers do not conflict with each other. An implementation can identify itself by placing a Java service provider configuration file (if not already present) -
org.glassfish.jersey.client.rx.spi.RxInvokerProvider- in the resource directory
META-INF/services, and adding the fully qualified service-provider-class of the implementation in the file.
|Modifier and Type||Method and Description|
Create an invoker of a given type.
<RX> RX getInvoker(Class<RX> invokerType, javax.ws.rs.client.Invocation.Builder builder, ExecutorService executor)
RX- the concrete reactive invocation type.
invokerType- the invoker type.
builder- the builder to create JAX-RS
invocationinvoked in reactive way.
executor- the executor service to execute reactive requests.
nullif the provider does not support the requested
javax.ws.rs.ProcessingException- if there is an error creating the invoker.
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.