public enum QuotaAlgorithm extends Enum<QuotaAlgorithm>
| Enum Constant and Description |
|---|
FIXED_WINDOW
FIXED_WINDOW The fixed window approach can allow 2x peak specified rate, whereas the rolling-window doesn't.
|
ROLLING_WINDOW
ROLLING_WINDOW The rolling window algorithm's additional precision comes at the cost of increased redis resource
usage.
|
| Modifier and Type | Method and Description |
|---|---|
int |
value() |
static QuotaAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QuotaAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuotaAlgorithm FIXED_WINDOW
public static final QuotaAlgorithm ROLLING_WINDOW
public static QuotaAlgorithm[] values()
for (QuotaAlgorithm c : QuotaAlgorithm.values()) System.out.println(c);
public static QuotaAlgorithm 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 int value()
Copyright © 2017–2018 Red Hat. All rights reserved.