Class Pacer
java.lang.Object
step.artefacts.handlers.loadtesting.Pacer
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
protected static boolean
static void
scheduleAtConstantPacing
(Consumer<Integer> r, long pacingMs, long maxDurationInSeconds, ExecutionContext executionContext) static void
scheduleAtConstantPacing
(Consumer<Integer> r, long pacingMs, Predicate<Pacer.Context> predicate, ExecutionContext executionContext) static void
scheduleAtConstantRate
(Consumer<Integer> r, long executionsPerSecond, long maxDurationInSeconds, ExecutionContext executionContext)
-
Constructor Details
-
Pacer
public Pacer()
-
-
Method Details
-
scheduleAtConstantRate
public static void scheduleAtConstantRate(Consumer<Integer> r, long executionsPerSecond, long maxDurationInSeconds, ExecutionContext executionContext) throws InterruptedException - Throws:
InterruptedException
-
scheduleAtConstantPacing
public static void scheduleAtConstantPacing(Consumer<Integer> r, long pacingMs, long maxDurationInSeconds, ExecutionContext executionContext) throws InterruptedException - Throws:
InterruptedException
-
scheduleAtConstantPacing
public static void scheduleAtConstantPacing(Consumer<Integer> r, long pacingMs, Predicate<Pacer.Context> predicate, ExecutionContext executionContext) throws InterruptedException - Throws:
InterruptedException
-
isDebugEnabled
protected static boolean isDebugEnabled() -
debug
-