Class FaultInjectionConnectionErrorResultBuilder
java.lang.Object
com.azure.cosmos.test.faultinjection.FaultInjectionConnectionErrorResultBuilder
Fault injection connection error result builder.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a newFaultInjectionConnectionErrorResult
.Indicates how often the connection error will be injected.threshold
(double threshold) Indicates the percentage of total established connections will be impacted when the connection error is injected.
-
Method Details
-
interval
Indicates how often the connection error will be injected.- Parameters:
interval
- the interval of triggering the connection error.- Returns:
- the builder.
-
threshold
Indicates the percentage of total established connections will be impacted when the connection error is injected.- Parameters:
threshold
- the percentage of established connection will be impacted when the connection error is injected.- Returns:
- the builder.
-
build
Create a newFaultInjectionConnectionErrorResult
.- Returns:
- the
FaultInjectionConnectionErrorResult
.
-