Class Limiter.FlowsPerSecond
- java.lang.Object
-
- org.opennms.nephron.testing.flowgen.Limiter
-
- org.opennms.nephron.testing.flowgen.Limiter.FlowsPerSecond
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.nephron.testing.flowgen.Limiter
Limiter.FlowsPerSecond
-
-
Constructor Summary
Constructors Constructor Description FlowsPerSecond(Supplier<Long> currentTimeMillis, long flowsPerSecond)FlowsPerSecond(Supplier<Long> currentTimeMillis, long flowsPerSecond, long state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheck(long incr)Checks if the given number of flows may be emitted.longstate()The current limiter state.
-
-
-
Method Detail
-
check
public boolean check(long incr)
Description copied from class:LimiterChecks if the given number of flows may be emitted.
-
-