Package org.glassfish.jersey.spi

Examples of org.glassfish.jersey.spi.RequestExecutorsProvider


     *
     * @param locator Injected HK2 service locator.
     */
    public ClientAsyncExecutorsFactory(ServiceLocator locator) {
        super(locator);
        this.requestingExecutor = getInitialRequestingExecutor(new RequestExecutorsProvider() {

            @Override
            public ExecutorService getRequestingExecutor() {
                return Executors.newCachedThreadPool(
                        new ThreadFactoryBuilder().setNameFormat("jersey-client-async-executor-%d").build());
View Full Code Here


     * @param locator HK2 service locator.
     */
    @Inject
    public ServerExecutorsFactory(ServiceLocator locator) {
        super(locator);
        this.requestingExecutor = getInitialRequestingExecutor(new RequestExecutorsProvider() {

            @Override
            public ExecutorService getRequestingExecutor() {
                return Executors.newCachedThreadPool(
                        new ThreadFactoryBuilder().setNameFormat("jersey-server-managed-async-executor-%d").build());
View Full Code Here

TOP

Related Classes of org.glassfish.jersey.spi.RequestExecutorsProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.