Class ThrottleDataHolder
java.lang.Object
org.apache.synapse.commons.throttle.core.ThrottleDataHolder
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCallerContext(String id, CallerContext callerContext) voidaddThrottleContext(String applicationId, ThrottleContext applicationThrottleContext) getThrottleContext(String applicationId) voidremoveCaller(String id) voidvoidsetConcurrentAccessController(String key, ConcurrentAccessController concurrentAccessController)
-
Constructor Details
-
ThrottleDataHolder
public ThrottleDataHolder()
-
-
Method Details
-
getConcurrentAccessController
-
setConcurrentAccessController
public void setConcurrentAccessController(String key, ConcurrentAccessController concurrentAccessController) -
removeConcurrentAccessController
-
getThrottleContext
-
addThrottleContext
-
addCallerContext
-
getCallerContext
-
removeCaller
-