public enum ReservoirType extends Enum<ReservoirType>
| 枚举常量和说明 |
|---|
BUCKET
The bucket reservoir
|
EXPONENTIALLY_DECAYING
The exponentially decaying reservoir
|
SLIDING_TIME_WINDOW
The sliding time window reservoir
|
SLIDING_WINDOW
The sliding window reservoir
|
UNIFORM
The uniform reservoir
|
public static final ReservoirType EXPONENTIALLY_DECAYING
public static final ReservoirType SLIDING_TIME_WINDOW
public static final ReservoirType SLIDING_WINDOW
public static final ReservoirType UNIFORM
public static final ReservoirType BUCKET
public static ReservoirType[] values()
for (ReservoirType c : ReservoirType.values()) System.out.println(c);
public static ReservoirType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2019. All rights reserved.