Uses of Class
org.mockserver.model.TcpChaosProfile
Packages that use TcpChaosProfile
Package
Description
-
Uses of TcpChaosProfile in org.mockserver.mock.action.http
Methods in org.mockserver.mock.action.http that return TcpChaosProfileModifier and TypeMethodDescriptionReturns the TCP chaos profile registered for the given host, ornullif none (or it has expired — an expired entry is removed lazily here).TcpChaosRegistry.patch(String host, TcpChaosProfile partial) Applies JSON Merge Patch semantics to the TCP chaos profile for the given host.Methods in org.mockserver.mock.action.http that return types with arguments of type TcpChaosProfileModifier and TypeMethodDescriptionTcpChaosRegistry.entries()Returns a snapshot copy of the current, non-expired host to profile mappings.Methods in org.mockserver.mock.action.http with parameters of type TcpChaosProfileModifier and TypeMethodDescriptionTcpChaosRegistry.patch(String host, TcpChaosProfile partial) Applies JSON Merge Patch semantics to the TCP chaos profile for the given host.voidTcpChaosRegistry.put(String host, TcpChaosProfile profile) Register (or replace) the TCP chaos profile for the given host with no expiry.voidTcpChaosRegistry.put(String host, TcpChaosProfile profile, long ttlMillis) Register (or replace) the TCP chaos profile for the given host, optionally with a time-to-live after which it auto-expires. -
Uses of TcpChaosProfile in org.mockserver.model
Methods in org.mockserver.model that return TcpChaosProfileModifier and TypeMethodDescriptionstatic TcpChaosProfileTcpChaosProfile.tcpChaosProfile()TcpChaosProfile.withBandwidthBytesPerSec(Long bandwidthBytesPerSec) TcpChaosProfile.withHttp2GoAway(Boolean http2GoAway) When true and the connection is HTTP/2, a GOAWAY frame is emitted on the response path so the client stops opening new streams and drains — the graceful "this connection is going away" signal.TcpChaosProfile.withHttp2GoAwayErrorCode(Long http2GoAwayErrorCode) HTTP/2 error code carried on the GOAWAY frame.TcpChaosProfile.withHttp2GoAwayLastStreamId(Long http2GoAwayLastStreamId) ThelastStreamIdcarried on the GOAWAY frame.TcpChaosProfile.withLatencyMs(Long latencyMs) TcpChaosProfile.withLimitDataBytes(Long limitDataBytes) TcpChaosProfile.withResetAfterResponseChunks(Integer resetAfterResponseChunks) Number of response body chunks to write before the mid-response RST.TcpChaosProfile.withResetMidResponse(Boolean resetMidResponse) When true, after the response head is written the socket is forced to RST (SO_LINGER 0 + forced close) instead of a clean FIN, so the client sees the connection reset mid-stream — the "server crashed while replying" fault.TcpChaosProfile.withResetPeer(Boolean resetPeer) TcpChaosProfile.withSlicerChunkSize(Integer slicerChunkSize) TcpChaosProfile.withSlowClose(Boolean slowClose) TcpChaosProfile.withSlowCloseDelay(Delay slowCloseDelay) Host-scoped (optionally jittered) delay applied before the socket FIN on the response path, even whenConnectionOptions.closeSocketDelayis null.TcpChaosProfile.withTimeout(Boolean timeout) -
Uses of TcpChaosProfile in org.mockserver.serialization.model
Methods in org.mockserver.serialization.model that return TcpChaosProfileConstructors in org.mockserver.serialization.model with parameters of type TcpChaosProfile