Class FaultInjectionEndpointBuilder
java.lang.Object
com.azure.cosmos.test.faultinjection.FaultInjectionEndpointBuilder
Fault injection endpoint builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create the fault injection endpoints.includePrimary
(boolean includePrimary) Flag to indicate whether primary replica addresses can be used.replicaCount
(int replicaCount) Set the replica count of the fault injection endpoint.
-
Constructor Details
-
FaultInjectionEndpointBuilder
Constructor.- Parameters:
feedRange
- the feed range.
-
-
Method Details
-
replicaCount
Set the replica count of the fault injection endpoint.- Parameters:
replicaCount
- the replica count.- Returns:
- the builder.
-
includePrimary
Flag to indicate whether primary replica addresses can be used.- Parameters:
includePrimary
- flag to indicate whether primary addresses can be used.- Returns:
- the builder.
-
build
Create the fault injection endpoints.- Returns:
- the
FaultInjectionEndpoints
.
-