org.apache.synapse.commons.throttle.core

## Class ThrottleDataHolder

- java.lang.Object
- - org.apache.synapse.commons.throttle.core.ThrottleDataHolder

-     public class ThrottleDataHolder
      extends java.lang.Object

  This class is used to keep frequently changing Throttle data. Earlier ConfigurationContext was used to keep this data but when properties in the CC are modified concurrently, it makes the HashMap to corrupt, leading certain threads to read entries indefinitely.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ThrottleDataHolder()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addCallerContext(java.lang.String id, CallerContext callerContext)`
    `void` | `addThrottleContext(java.lang.String applicationId, ThrottleContext applicationThrottleContext)`
    `CallerContext` | `getCallerContext(java.lang.String id)`
    `ConcurrentAccessController` | `getConcurrentAccessController(java.lang.String key)`
    `ThrottleContext` | `getThrottleContext(java.lang.String applicationId)`
    `void` | `removeCaller(java.lang.String id)`
    `void` | `removeConcurrentAccessController(java.lang.String key)`
    `void` | `setConcurrentAccessController(java.lang.String key, ConcurrentAccessController concurrentAccessController)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ThrottleDataHolder

          public ThrottleDataHolder()

  - ### Method Detail

    - #### getConcurrentAccessController

          public ConcurrentAccessController getConcurrentAccessController(java.lang.String key)

    - #### setConcurrentAccessController

          public void setConcurrentAccessController(java.lang.String key,
                                                    ConcurrentAccessController concurrentAccessController)

    - #### removeConcurrentAccessController

          public void removeConcurrentAccessController(java.lang.String key)

    - #### getThrottleContext

          public ThrottleContext getThrottleContext(java.lang.String applicationId)

    - #### addThrottleContext

          public void addThrottleContext(java.lang.String applicationId,
                                         ThrottleContext applicationThrottleContext)

    - #### addCallerContext

          public void addCallerContext(java.lang.String id,
                                       CallerContext callerContext)

    - #### getCallerContext

          public CallerContext getCallerContext(java.lang.String id)

    - #### removeCaller

          public void removeCaller(java.lang.String id)

Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.