public class ThrottleData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ThrottleData.ThrottleType
Enum to hold throttle types supported by gateway.
|
| Constructor and Description |
|---|
ThrottleData() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cleanThrottleData(long timeStamp) |
AtomicLong |
getCount() |
long |
getRemainingQuota() |
ThrottleData.ThrottleType |
getThrottleType() |
long |
getUnitTime() |
long |
getWindowStartTime() |
boolean |
isStopOnQuota() |
boolean |
isThrottled() |
void |
setCount(AtomicLong count) |
void |
setRemainingQuota(long remainingQuota) |
void |
setStopOnQuota(boolean stopOnQuota) |
void |
setThrottled(boolean throttled) |
void |
setThrottleKey(String throttleKey) |
void |
setThrottleType(ThrottleData.ThrottleType throttleType) |
void |
setUnitTime(long unitTime) |
void |
setWindowStartTime(long windowStartTime) |
public long getWindowStartTime()
public void setWindowStartTime(long windowStartTime)
public long getUnitTime()
public void setUnitTime(long unitTime)
public AtomicLong getCount()
public void setCount(AtomicLong count)
public long getRemainingQuota()
public void setRemainingQuota(long remainingQuota)
public boolean isStopOnQuota()
public void setStopOnQuota(boolean stopOnQuota)
public boolean isThrottled()
public void setThrottled(boolean throttled)
public ThrottleData.ThrottleType getThrottleType()
public void setThrottleType(ThrottleData.ThrottleType throttleType)
public void setThrottleKey(String throttleKey)
public boolean cleanThrottleData(long timeStamp)
Copyright © 2024 WSO2. All rights reserved.