Package de.gsi.dataset.event
Enum EventRateLimiter.UpdateStrategy
- java.lang.Object
-
- java.lang.Enum<EventRateLimiter.UpdateStrategy>
-
- de.gsi.dataset.event.EventRateLimiter.UpdateStrategy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EventRateLimiter.UpdateStrategy>
- Enclosing class:
- EventRateLimiter
public static enum EventRateLimiter.UpdateStrategy extends java.lang.Enum<EventRateLimiter.UpdateStrategy>
EventRateLimter UpdateStrategyINSTANTANEOUS_RATEnotify if the time w.r.t. the lastUpdateEventis larger than time thresholdAVERAGE_RATEnotify if the averageUpdateEventrate is smaller than frequency threshold
- Author:
- rstein
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVERAGE_RATEINSTANTANEOUS_RATE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventRateLimiter.UpdateStrategyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EventRateLimiter.UpdateStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANTANEOUS_RATE
public static final EventRateLimiter.UpdateStrategy INSTANTANEOUS_RATE
-
AVERAGE_RATE
public static final EventRateLimiter.UpdateStrategy AVERAGE_RATE
-
-
Method Detail
-
values
public static EventRateLimiter.UpdateStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EventRateLimiter.UpdateStrategy c : EventRateLimiter.UpdateStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventRateLimiter.UpdateStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-