Package com.linkedin.venice.throttle
Enum VeniceRateLimiter.RateLimiterType
- java.lang.Object
-
- java.lang.Enum<VeniceRateLimiter.RateLimiterType>
-
- com.linkedin.venice.throttle.VeniceRateLimiter.RateLimiterType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VeniceRateLimiter.RateLimiterType>
- Enclosing interface:
- VeniceRateLimiter
public static enum VeniceRateLimiter.RateLimiterType extends java.lang.Enum<VeniceRateLimiter.RateLimiterType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVENT_THROTTLER_WITH_SILENT_REJECTION
GUAVA_RATE_LIMITER
TOKEN_BUCKET_GREEDY_REFILL
TOKEN_BUCKET_INCREMENTAL_REFILL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VeniceRateLimiter.RateLimiterType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VeniceRateLimiter.RateLimiterType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EVENT_THROTTLER_WITH_SILENT_REJECTION
public static final VeniceRateLimiter.RateLimiterType EVENT_THROTTLER_WITH_SILENT_REJECTION
-
GUAVA_RATE_LIMITER
public static final VeniceRateLimiter.RateLimiterType GUAVA_RATE_LIMITER
-
TOKEN_BUCKET_INCREMENTAL_REFILL
public static final VeniceRateLimiter.RateLimiterType TOKEN_BUCKET_INCREMENTAL_REFILL
-
TOKEN_BUCKET_GREEDY_REFILL
public static final VeniceRateLimiter.RateLimiterType TOKEN_BUCKET_GREEDY_REFILL
-
-
Method Detail
-
values
public static VeniceRateLimiter.RateLimiterType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VeniceRateLimiter.RateLimiterType c : VeniceRateLimiter.RateLimiterType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VeniceRateLimiter.RateLimiterType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-