/** * Get the configured runtime. * * @return configured runtime. */ ClientRuntime getRuntime() { return state.runtime.get(); }
Connector getConnector() { // Get the connector only if the runtime has been initialized. return (runtime.isInitialized()) ? runtime.get().getConnector() : null; }
/** * Get the configured runtime. * * @return configured runtime. */ ClientRuntime getRuntime() { return state.runtime.get(); }
Connector getConnector() { // Get the connector only if the runtime has been initialized. return (runtime.isInitialized()) ? runtime.get().getConnector() : null; }
public boolean hasCompatibleConstructor() { try { return constructor.get() != null; } catch (InjectionException ex) { // Compatible constructor was not found. return false; } }
Connector getConnector() { // Get the connector only if the runtime has been initialized. return (runtime.isInitialized()) ? runtime.get().getConnector() : null; }
@Override protected int getMaximumPoolSize() { return asyncThreadPoolSize.get(); }
onClose(); } finally { if (lazyExecutorServiceProvider.isInitialized()) { AccessController.doPrivileged(shutdownExecutor( name, lazyExecutorServiceProvider.get(), getTerminationTimeout(), TimeUnit.MILLISECONDS));
@Override protected int getMaximumPoolSize() { return asyncThreadPoolSize.get(); }
onClose(); } finally { if (lazyExecutorServiceProvider.isInitialized()) { AccessController.doPrivileged(shutdownExecutor( name, lazyExecutorServiceProvider.get(), getTerminationTimeout(), TimeUnit.MILLISECONDS));
public Constructor<T> getConstructor() { return constructor.get(); }
Connector getConnector() { // Get the connector only if the runtime has been initialized. return (runtime.isInitialized()) ? runtime.get().getConnector() : null; }
public ClientExecutor getClientExecutor() { return state.runtime.get(); }
Connector getConnector() { // Get the connector only if the runtime has been initialized. return (runtime.isInitialized()) ? runtime.get().getConnector() : null; }
public ClientExecutor getClientExecutor() { return state.runtime.get(); }
/** * Get the configured runtime. * * @return configured runtime. */ ClientRuntime getRuntime() { return state.runtime.get(); }
@Override protected int getMaximumPoolSize() { return asyncThreadPoolSize.get(); }
public ClientExecutor getClientExecutor() { return state.runtime.get(); }
JerseyRxListenableFutureInvoker(final SyncInvoker syncInvoker, final ExecutorService executor) { super(syncInvoker, executor); if (executor == null) { // TODO: use JAX-RS client scheduler // TODO: https://java.net/jira/browse/JAX_RS_SPEC-523 service = DEFAULT_EXECUTOR_SERVICE.get(); } else { service = MoreExecutors.listeningDecorator(executor); } }
@Override public Future<?> submit(Runnable task) { return asyncRequestExecutor.get().submit(task); }