org.glassfish.jersey.spi
Interface ResponseExecutorsProvider


@Contract
public interface ResponseExecutorsProvider

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 request 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.

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:
RequestExecutorsProvider

Method Summary
 ExecutorService getRespondingExecutor()
          Get response processing executor.
 

Method Detail

getRespondingExecutor

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 provider does not supply the executor.


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