public class

ConcurrencyThrottleInterceptor

extends ConcurrencyThrottleSupport
implements Serializable
java.lang.Object
   ↳ org.springframework.util.ConcurrencyThrottleSupport
     ↳ org.springframework.aop.interceptor.ConcurrencyThrottleInterceptor

Class Overview

Interceptor that throttles concurrent access, blocking invocations if a specified concurrency limit is reached.

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.

Summary

[Expand]
Inherited Constants
From class org.springframework.util.ConcurrencyThrottleSupport
[Expand]
Inherited Fields
From class org.springframework.util.ConcurrencyThrottleSupport
Public Constructors
ConcurrencyThrottleInterceptor()
Public Methods
Object invoke(MethodInvocation methodInvocation)
[Expand]
Inherited Methods
From class org.springframework.util.ConcurrencyThrottleSupport
From class java.lang.Object

Public Constructors

public ConcurrencyThrottleInterceptor ()

Public Methods

public Object invoke (MethodInvocation methodInvocation)

Throws
Throwable