Package org.mockserver.load
Class LoadStep
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.load.LoadStep
One ordered step of a
LoadScenario: the request to fire and the optional
think-time to wait before firing the next step in the same iteration.
The request reuses HttpRequest; per-iteration template placeholders
(e.g. $iteration.index, $uuid) live in its fields (path, body,
headers, query) and are rendered fresh each iteration by the orchestrator using
the scenario's templateType.
thinkTime is inter-step pacing only — the orchestrator schedules the
next step after thinkTime.sampleValueMillis() on its scheduler thread and
never calls Delay.applyDelay() (which would block a worker thread). A null
thinkTime means no pause.
Programmatic cross-step capture is deferred; cross-step state in v1 is template-side
(e.g. $scenario.set/get helpers).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionStep-level custom labels (may be null/empty).getName()Optional human label for this step (may be null).static LoadSteploadStep()static LoadSteploadStep(HttpRequest request) withLabels(Map<String, String> labels) withRequest(HttpRequest request) withThinkTime(Delay thinkTime) Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
-
Constructor Details
-
LoadStep
public LoadStep()
-
-
Method Details
-
loadStep
-
loadStep
-
getRequest
-
withRequest
-
getThinkTime
-
withThinkTime
-
getName
Optional human label for this step (may be null). Seename. -
withName
-
getLabels
Step-level custom labels (may be null/empty). Seelabels. -
withLabels
-
withLabel
-