Class ThrottleException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- me.insidezhou.southernquiet.throttle.ThrottleException
-
- All Implemented Interfaces:
java.io.Serializable
public class ThrottleException extends java.lang.Exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ThrottleException(java.lang.String throttleName, long threshold, java.util.concurrent.TimeUnit timeUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetThreshold()java.lang.StringgetThrottleName()java.util.concurrent.TimeUnitgetTimeUnit()voidsetThreshold(long threshold)voidsetThrottleName(java.lang.String throttleName)voidsetTimeUnit(java.util.concurrent.TimeUnit timeUnit)
-
-
-
Method Detail
-
getThrottleName
public java.lang.String getThrottleName()
-
setThrottleName
public void setThrottleName(java.lang.String throttleName)
-
getThreshold
public long getThreshold()
-
setThreshold
public void setThreshold(long threshold)
-
getTimeUnit
public java.util.concurrent.TimeUnit getTimeUnit()
-
setTimeUnit
public void setTimeUnit(java.util.concurrent.TimeUnit timeUnit)
-
-