Class ConcurrentRequestsThrottler.ThrottlingState

java.lang.Object
org.apache.camel.processor.ConcurrentRequestsThrottler.ThrottlingState
Enclosing class:
ConcurrentRequestsThrottler

protected class ConcurrentRequestsThrottler.ThrottlingState extends Object
  • Method Details

    • getThrottleRate

      public int getThrottleRate()
    • clean

      public void clean()
    • tryAcquire

      public boolean tryAcquire(org.apache.camel.Exchange exchange)
    • acquire

      public void acquire(org.apache.camel.Exchange exchange) throws InterruptedException
      Throws:
      InterruptedException
    • release

      public void release(org.apache.camel.Exchange exchange)
      Returns a permit.
    • calculateAndSetMaxConcurrentRequestsExpression

      public void calculateAndSetMaxConcurrentRequestsExpression(org.apache.camel.Exchange exchange) throws Exception
      Evaluates the maxConcurrentRequestsExpression and adjusts the throttle rate up or down.
      Throws:
      Exception