org.glassfish.jersey.spi
Interface RequestExecutorsProvider


@Contract
public interface RequestExecutorsProvider

Pluggable provider of executor services used to run Jersey request and response processing code.

When Jersey receives a request for processing, it will use the requesting executor to run the request pre-processing and request-to-response transformation code.

The custom provider implementing this interface should be registered in the standard way on the server. The client must be created with configuration containing the provider, later registrations will be ignored.

Author:
Marek Potociar (marek.potociar at oracle.com), Miroslav Fuksa (miroslav.fuksa at oracle.com)
See Also:
ResponseExecutorsProvider

Method Summary
 ExecutorService getRequestingExecutor()
          Get request processing executor.
 

Method Detail

getRequestingExecutor

ExecutorService getRequestingExecutor()
Get request processing executor.

This method is called only once at Jersey initialization, before the first request is processed.

Returns:
request processing executor, or null if the provider does not supply the executor.


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.