public class ThrottleDataReceiver extends Object
| Constructor and Description |
|---|
ThrottleDataReceiver() |
| Modifier and Type | Method and Description |
|---|---|
static ThrottleCounter |
getThrottleCounter() |
static ThrottleDataCleanUpTask |
getThrottleDataCleanUpTask() |
static void |
initThrottleDataReceiver(int processThreadPoolCoreSize,
int processThreadPoolMaximumSize,
int processThreadPoolKeepAliveTime,
int throttleFrequency)
This method will initialize throttle data counters.
|
static boolean |
isApiLevelThrottled(String apiKey) |
static boolean |
isAppLevelThrottled(String appKey) |
static boolean |
isResourceThrottled(String resourceKey) |
static boolean |
isSubcriptionLevelThrottled(String subscriptionKey) |
static void |
processNonThrottledEvent(org.ballerinalang.jvm.values.MapValue throttleEvent)
This method used to pass throttle data and let it run within separate thread.
|
public static ThrottleCounter getThrottleCounter()
public static void initThrottleDataReceiver(int processThreadPoolCoreSize,
int processThreadPoolMaximumSize,
int processThreadPoolKeepAliveTime,
int throttleFrequency)
public static void processNonThrottledEvent(org.ballerinalang.jvm.values.MapValue throttleEvent)
public static boolean isResourceThrottled(String resourceKey)
public static boolean isAppLevelThrottled(String appKey)
public static boolean isSubcriptionLevelThrottled(String subscriptionKey)
public static boolean isApiLevelThrottled(String apiKey)
public static ThrottleDataCleanUpTask getThrottleDataCleanUpTask()
Copyright © 2020 WSO2. All rights reserved.