类 ConcurrencyThrottleInterceptor

java.lang.Object
cn.taketoday.util.ConcurrencyThrottleSupport
cn.taketoday.aop.interceptor.ConcurrencyThrottleInterceptor
所有已实现的接口:
Serializable, Advice, Interceptor, MethodInterceptor

public class ConcurrencyThrottleInterceptor extends ConcurrencyThrottleSupport implements MethodInterceptor, Serializable
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.

从以下版本开始:
4.0
作者:
Juergen Hoeller, TODAY 2021/9/11 17:20
另请参阅:
  • 构造器详细资料

    • ConcurrencyThrottleInterceptor

      public ConcurrencyThrottleInterceptor()
  • 方法详细资料