Package org.jaxxy.rx
Class FutureInvokerProvider
java.lang.Object
org.jaxxy.rx.FutureInvokerProvider
- All Implemented Interfaces:
jakarta.ws.rs.client.RxInvokerProvider<FutureInvoker>
@Provider
public class FutureInvokerProvider
extends Object
implements jakarta.ws.rs.client.RxInvokerProvider<FutureInvoker>
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newFutureInvokerProviderwhich callsExecutors.newCachedThreadPool()to create its defaultExecutorService.FutureInvokerProvider(ExecutorService defaultExecutorService) Creates a newFutureInvokerProviderwhich uses the provided defaultExecutorService. -
Method Summary
Modifier and TypeMethodDescriptiongetRxInvoker(jakarta.ws.rs.client.SyncInvoker syncInvoker, ExecutorService executorService) booleanisProviderFor(Class<?> clazz)
-
Constructor Details
-
FutureInvokerProvider
public FutureInvokerProvider()Creates a newFutureInvokerProviderwhich callsExecutors.newCachedThreadPool()to create its defaultExecutorService. -
FutureInvokerProvider
Creates a newFutureInvokerProviderwhich uses the provided defaultExecutorService.- Parameters:
defaultExecutorService-
-
-
Method Details
-
getRxInvoker
public FutureInvoker getRxInvoker(jakarta.ws.rs.client.SyncInvoker syncInvoker, ExecutorService executorService) - Specified by:
getRxInvokerin interfacejakarta.ws.rs.client.RxInvokerProvider<FutureInvoker>
-
isProviderFor
- Specified by:
isProviderForin interfacejakarta.ws.rs.client.RxInvokerProvider<FutureInvoker>
-