@Provider public class FutureInvokerProvider extends Object implements javax.ws.rs.client.RxInvokerProvider<FutureInvoker>
| Constructor and Description |
|---|
FutureInvokerProvider()
Creates a new
FutureInvokerProvider which calls Executors.newCachedThreadPool()
to create its default ExecutorService. |
FutureInvokerProvider(ExecutorService defaultExecutorService)
Creates a new
FutureInvokerProvider which uses the provided default ExecutorService. |
| Modifier and Type | Method and Description |
|---|---|
FutureInvoker |
getRxInvoker(javax.ws.rs.client.SyncInvoker syncInvoker,
ExecutorService executorService) |
boolean |
isProviderFor(Class<?> clazz) |
public FutureInvokerProvider()
FutureInvokerProvider which calls Executors.newCachedThreadPool()
to create its default ExecutorService.public FutureInvokerProvider(ExecutorService defaultExecutorService)
FutureInvokerProvider which uses the provided default ExecutorService.defaultExecutorService - public FutureInvoker getRxInvoker(javax.ws.rs.client.SyncInvoker syncInvoker, ExecutorService executorService)
getRxInvoker in interface javax.ws.rs.client.RxInvokerProvider<FutureInvoker>public boolean isProviderFor(Class<?> clazz)
isProviderFor in interface javax.ws.rs.client.RxInvokerProvider<FutureInvoker>Copyright © 2018. All rights reserved.