Uses of Class
org.mockserver.model.Delay
Packages that use Delay
Package
Description
-
Uses of Delay in org.mockserver.client
Methods in org.mockserver.client that return DelayModifier and TypeMethodDescriptionstatic DelayLlm.timeToFirstToken(long value, TimeUnit timeUnit) Creates a Delay representing the time to first token.Methods in org.mockserver.client with parameters of type DelayModifier and TypeMethodDescriptionForwardChainExpectation.forward(ExpectationForwardCallback expectationForwardCallback, ExpectationForwardAndResponseCallback expectationForwardResponseCallback, Delay delay) Call method on object locally or remotely (over web socket) to generate request to forward when expectation is matchedForwardChainExpectation.forward(ExpectationForwardCallback expectationForwardCallback, Delay delay) Call method on object locally or remotely (over web socket) to generate request to forward when expectation is matchedForwardChainExpectation.respond(ExpectationResponseCallback expectationResponseCallback, Delay delay) Call method on object locally or remotely (over web socket) to generate response to return when expectation is matched -
Uses of Delay in org.mockserver.configuration
Methods in org.mockserver.configuration that return DelayMethods in org.mockserver.configuration with parameters of type Delay -
Uses of Delay in org.mockserver.load
Methods in org.mockserver.load that return DelayMethods in org.mockserver.load with parameters of type Delay -
Uses of Delay in org.mockserver.mock.action.http
Methods in org.mockserver.mock.action.http with parameters of type Delay -
Uses of Delay in org.mockserver.model
Methods in org.mockserver.model that return DelayModifier and TypeMethodDescriptionstatic Delaystatic DelayConnectionOptions.getChunkDelay()ConnectionOptions.getCloseSocketDelay()Action.getDelay()AfterAction.getDelay()ExpectationStep.getDelay()GrpcStreamMessage.getDelay()SseEvent.getDelay()WebSocketMessage.getDelay()HttpChaosProfile.getLatency()TcpChaosProfile.getSlowCloseDelay()HttpChaosProfile.getSlowResponseChunkDelay()AfterAction.getTimeout()Before-actions only: maximum time to wait for a blocking action to complete.ExpectationStep.getTimeout()Side-effect steps only: maximum time to wait for a blocking step.StreamingPhysics.getTimeToFirstToken()static Delaystatic DelayDelay.milliseconds(long value) static DelayDelay.minutes(long value) static DelayDelay.seconds(long value) static DelayDelay.template(HttpTemplate.TemplateType templateType, String template) Creates an opt-in delay whose duration in milliseconds is computed by rendering the supplied template against the incoming request (the same request context exposed to response templates, e.g.static DelayMethods in org.mockserver.model with parameters of type DelayModifier and TypeMethodDescriptionConnectionOptions.withChunkDelay(Delay chunkDelay) Specifies the delay between sending each chunk of a chunked response.ConnectionOptions.withCloseSocketDelay(Delay closeSocketDelay) Override how long to delay before closing socket, this value is ignored if socket isn't going to be closedThe delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)HttpChaosProfile.withLatency(Delay latency) GrpcBidiResponse.withMessage(String json, Delay delay) GrpcStreamResponse.withMessage(String json, Delay delay) GrpcBidiRule.withResponse(String json, Delay delay) TcpChaosProfile.withSlowCloseDelay(Delay slowCloseDelay) Host-scoped (optionally jittered) delay applied before the socket FIN on the response path, even whenConnectionOptions.closeSocketDelayis null.HttpChaosProfile.withSlowResponseChunkDelay(Delay slowResponseChunkDelay) AfterAction.withTimeout(Delay timeout) ExpectationStep.withTimeout(Delay timeout) StreamingPhysics.withTimeToFirstToken(Delay timeToFirstToken) -
Uses of Delay in org.mockserver.scheduler
Methods in org.mockserver.scheduler with parameters of type DelayModifier and TypeMethodDescriptionvoidvoidScheduler.scheduleLocalCallback(Runnable command, boolean synchronous, Delay... delays) Dispatch a LOCAL (in-JVM) object/class callback so that — in asynchronous (Netty) mode — its potentially-BLOCKING body never runs on the server worker event loop and never consumes the bounded scheduler pool.voidScheduler.submitAsync(Runnable command, Delay... delays) -
Uses of Delay in org.mockserver.serialization.java
Methods in org.mockserver.serialization.java with parameters of type Delay -
Uses of Delay in org.mockserver.serialization.model
Methods in org.mockserver.serialization.model that return DelayConstructors in org.mockserver.serialization.model with parameters of type Delay -
Uses of Delay in org.mockserver.templates.engine
Methods in org.mockserver.templates.engine that return DelayModifier and TypeMethodDescriptionDelayTemplateResolver.resolve(Delay delay, HttpRequest request) Returns a delay whose duration is fixed for the supplied request.Methods in org.mockserver.templates.engine with parameters of type DelayModifier and TypeMethodDescriptionDelayTemplateResolver.resolve(Delay delay, HttpRequest request) Returns a delay whose duration is fixed for the supplied request.