Package org.apache.hadoop.hbase.quotas
Enum Class ThrottleType
- All Implemented Interfaces:
Serializable
,Comparable<ThrottleType>
,Constable
Describe the Throttle Type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThrottling based on the read data capacity unitThrottling based on the number of read requests per time-unitThrottling based on the read data sizeThrottling based on the read+write capacity unitThrottling based on the number of requests per time-unitThrottling based on the read+write data sizeThrottling based on the write data capacity unitThrottling based on the number of write requests per time-unitThrottling based on the write data size -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThrottleType
Returns the enum constant of this class with the specified name.static ThrottleType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUEST_NUMBER
Throttling based on the number of requests per time-unit -
REQUEST_SIZE
Throttling based on the read+write data size -
WRITE_NUMBER
Throttling based on the number of write requests per time-unit -
WRITE_SIZE
Throttling based on the write data size -
READ_NUMBER
Throttling based on the number of read requests per time-unit -
READ_SIZE
Throttling based on the read data size -
REQUEST_CAPACITY_UNIT
Throttling based on the read+write capacity unit -
WRITE_CAPACITY_UNIT
Throttling based on the write data capacity unit -
READ_CAPACITY_UNIT
Throttling based on the read data capacity unit
-
-
Constructor Details
-
ThrottleType
private ThrottleType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-