public enum RateLimiterUnit extends Enum<RateLimiterUnit>
| Enum Constant and Description |
|---|
DAYS
天
|
HOURS
时
|
MINUTES
分
|
SECONDS
秒
|
| Modifier and Type | Method and Description |
|---|---|
abstract Duration |
duration(int value) |
static RateLimiterUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RateLimiterUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RateLimiterUnit SECONDS
public static final RateLimiterUnit MINUTES
public static final RateLimiterUnit HOURS
public static final RateLimiterUnit DAYS
public static RateLimiterUnit[] values()
for (RateLimiterUnit c : RateLimiterUnit.values()) System.out.println(c);
public static RateLimiterUnit 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 abstract Duration duration(int value)
Copyright © 2024. All rights reserved.