org.glassfish.jersey.process.internal
Class ProcessingExecutorsFactory

java.lang.Object
  extended by org.glassfish.jersey.process.internal.ProcessingExecutorsFactory
All Implemented Interfaces:
ProcessingExecutorsProvider

@Scoped(value=org.glassfish.hk2.scopes.Singleton.class)
public class ProcessingExecutorsFactory
extends java.lang.Object
implements ProcessingExecutorsProvider

Aggregate processing executors provider used directly in the request invoker to get the pluggable processing executor services.

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

Method Summary
 java.util.concurrent.ExecutorService getRequestingExecutor()
          Get request processing executor.
 java.util.concurrent.ExecutorService getRespondingExecutor()
          Get response processing executor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRequestingExecutor

public java.util.concurrent.ExecutorService getRequestingExecutor()
Description copied from interface: ProcessingExecutorsProvider
Get request processing executor. This method is called only once at Jersey initialization, before the first request is processed.

Specified by:
getRequestingExecutor in interface ProcessingExecutorsProvider
Returns:
request processing executor, or null if the default executor should be used.

getRespondingExecutor

public java.util.concurrent.ExecutorService getRespondingExecutor()
Description copied from interface: ProcessingExecutorsProvider
Get response processing executor. This method is called only once at Jersey initialization, before the first request is processed.

Specified by:
getRespondingExecutor in interface ProcessingExecutorsProvider
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.