org.glassfish.jersey.spi
Interface ProcessingExecutorsProvider


public interface ProcessingExecutorsProvider

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. Once the response is available, Jersey will use the responding executor to run the response post-processing code, before the final response is returned to the application layer.

Author:
Marek Potociar (marek.potociar at oracle.com)
See Also:
ProcessingExecutorsModule

Method Summary
 java.util.concurrent.ExecutorService getRequestingExecutor()
          Get request processing executor.
 java.util.concurrent.ExecutorService getRespondingExecutor()
          Get response processing executor.
 

Method Detail

getRequestingExecutor

java.util.concurrent.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 default executor should be used.

getRespondingExecutor

java.util.concurrent.ExecutorService getRespondingExecutor()
Get response processing executor. This method is called only once at Jersey initialization, before the first request is processed.

Returns:
response processing executor, or null if the default executor should be used.


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