Can be applied to methods of local services that involve heavy use of system resources, in a scenario where it is more efficient to throttle concurrency for a specific service rather than restricting the entire thread pool (e.g. the web container's thread pool).
The default concurrency limit of this interceptor is 1. Specify the "concurrencyLimit" bean property to change this value.
setConcurrencyLimit
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(MethodInvocation
the method invocation joinpoint methodInvocation)Implements org. Implement this method to perform extra treatments before and after the invocation. |
| ConcurrencyThrottleInterceptor | back to summary |
|---|---|
| public ConcurrencyThrottleInterceptor() | |
| invoke | back to summary |
|---|---|
| public Object invoke(MethodInvocation methodInvocation) throws Throwable Implements org. Doc from org. Implement this method to perform extra treatments before and
after the invocation. Polite implementations would certainly
like to invoke
| |