public static enum CassandraProperties.ThrottlerType extends Enum<CassandraProperties.ThrottlerType>
Enum Constant and Description |
---|
CONCURRENCY_LIMITING
Limit the number of requests that can be executed in parallel.
|
NONE
No request throttling.
|
RATE_LIMITING
Limits the request rate per second.
|
Modifier and Type | Method and Description |
---|---|
String |
type() |
static CassandraProperties.ThrottlerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CassandraProperties.ThrottlerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CassandraProperties.ThrottlerType CONCURRENCY_LIMITING
public static final CassandraProperties.ThrottlerType RATE_LIMITING
public static final CassandraProperties.ThrottlerType NONE
public static CassandraProperties.ThrottlerType[] values()
for (CassandraProperties.ThrottlerType c : CassandraProperties.ThrottlerType.values()) System.out.println(c);
public static CassandraProperties.ThrottlerType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String type()