org.springframework.core.task
Class SimpleAsyncTaskExecutor.ConcurrencyThrottleAdapter

java.lang.Object
  extended by org.springframework.util.ConcurrencyThrottleSupport
      extended by org.springframework.core.task.SimpleAsyncTaskExecutor.ConcurrencyThrottleAdapter
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
SimpleAsyncTaskExecutor

private static class SimpleAsyncTaskExecutor.ConcurrencyThrottleAdapter
extends ConcurrencyThrottleSupport

Subclass of the general ConcurrencyThrottleSupport class, making beforeAccess() and afterAccess() visible to the surrounding class.


Field Summary
 
Fields inherited from class org.springframework.util.ConcurrencyThrottleSupport
logger, NO_CONCURRENCY, UNBOUNDED_CONCURRENCY
 
Constructor Summary
private SimpleAsyncTaskExecutor.ConcurrencyThrottleAdapter()
           
 
Method Summary
protected  void afterAccess()
          To be invoked after the main execution logic of concrete subclasses.
protected  void beforeAccess()
          To be invoked before the main execution logic of concrete subclasses.
 
Methods inherited from class org.springframework.util.ConcurrencyThrottleSupport
getConcurrencyLimit, isThrottleActive, setConcurrencyLimit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAsyncTaskExecutor.ConcurrencyThrottleAdapter

private SimpleAsyncTaskExecutor.ConcurrencyThrottleAdapter()
Method Detail

beforeAccess

protected void beforeAccess()
Description copied from class: ConcurrencyThrottleSupport
To be invoked before the main execution logic of concrete subclasses.

This implementation applies the concurrency throttle.

Overrides:
beforeAccess in class ConcurrencyThrottleSupport
See Also:
ConcurrencyThrottleSupport.afterAccess()

afterAccess

protected void afterAccess()
Description copied from class: ConcurrencyThrottleSupport
To be invoked after the main execution logic of concrete subclasses.

Overrides:
afterAccess in class ConcurrencyThrottleSupport
See Also:
ConcurrencyThrottleSupport.beforeAccess()