Uses of Class
org.mockserver.model.GrpcChaosProfile
Packages that use GrpcChaosProfile
Package
Description
-
Uses of GrpcChaosProfile in org.mockserver.mock.action.http
Methods in org.mockserver.mock.action.http that return GrpcChaosProfileModifier and TypeMethodDescriptionReturns the gRPC chaos profile for the given service, falling back to the default ("") profile if no service-specific one exists.GrpcChaosRegistry.patch(String service, GrpcChaosProfile partial) Applies JSON Merge Patch semantics to the gRPC chaos profile for the given service.Methods in org.mockserver.mock.action.http that return types with arguments of type GrpcChaosProfileModifier and TypeMethodDescriptionGrpcChaosRegistry.entries()Returns a snapshot copy of the current, non-expired service to profile mappings.Methods in org.mockserver.mock.action.http with parameters of type GrpcChaosProfileModifier and TypeMethodDescriptionstatic GrpcChaosDecision.GrpcFaultGrpcChaosDecision.evaluate(GrpcChaosProfile profile, int matchCount, HttpQuotaRegistry quotaRegistry) Evaluate the given profile and decide whether to inject a gRPC fault.GrpcChaosRegistry.patch(String service, GrpcChaosProfile partial) Applies JSON Merge Patch semantics to the gRPC chaos profile for the given service.voidGrpcChaosRegistry.put(String service, GrpcChaosProfile profile) Register (or replace) the gRPC chaos profile for the given service with no expiry.voidGrpcChaosRegistry.put(String service, GrpcChaosProfile profile, long ttlMillis) Register (or replace) the gRPC chaos profile for the given service, optionally with a time-to-live after which it auto-expires. -
Uses of GrpcChaosProfile in org.mockserver.model
Methods in org.mockserver.model that return GrpcChaosProfileModifier and TypeMethodDescriptionstatic GrpcChaosProfileGrpcChaosProfile.grpcChaosProfile()GrpcChaosProfile.withAbortAfterMessages(Integer abortAfterMessages) Sets the client-streaming message count threshold for abort injection.GrpcChaosProfile.withCorruptGrpcStatus(Boolean corruptGrpcStatus) GrpcChaosProfile.withCustomTrailers(Map<String, String> customTrailers) Sets arbitrary trailer key/value pairs to inject on fault responses.GrpcChaosProfile.withErrorMessage(String errorMessage) GrpcChaosProfile.withErrorProbability(Double errorProbability) GrpcChaosProfile.withErrorStatusCode(String errorStatusCode) GrpcChaosProfile.withFailRequestCount(Integer failRequestCount) GrpcChaosProfile.withLatencyMs(Long latencyMs) GrpcChaosProfile.withOmitGrpcStatus(Boolean omitGrpcStatus) GrpcChaosProfile.withQuotaLimit(Integer quotaLimit) GrpcChaosProfile.withQuotaName(String quotaName) GrpcChaosProfile.withQuotaWindowMillis(Long quotaWindowMillis) GrpcChaosProfile.withSucceedFirst(Integer succeedFirst) -
Uses of GrpcChaosProfile in org.mockserver.serialization.model
Methods in org.mockserver.serialization.model that return GrpcChaosProfileConstructors in org.mockserver.serialization.model with parameters of type GrpcChaosProfile