Class AbstractCircuitBreakerMappingBuilder
java.lang.Object
com.linecorp.armeria.client.circuitbreaker.AbstractCircuitBreakerMappingBuilder
- Direct Known Subclasses:
CircuitBreakerMappingBuilder
An abstract builder class for building a
CircuitBreakerMapping
based on a combination of host, method and path.-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates an empty builder where all mapping keys are disabled by default. -
Method Summary
Modifier and TypeMethodDescriptionprotected final boolean
Returns whether the host dimension is enabled for the mapping.protected final boolean
Returns whether the method dimension is enabled for the mapping.protected final boolean
Returns whether the path dimension is enabled for the mapping.perHost()
Adds host dimension to the mapping Key.Adds method dimension to the mapping Key.perPath()
Adds path dimension to the mapping Key.protected final boolean
Returns whether the set dimensions are valid.
-
Constructor Details
-
AbstractCircuitBreakerMappingBuilder
protected AbstractCircuitBreakerMappingBuilder()Creates an empty builder where all mapping keys are disabled by default.
-
-
Method Details
-
perHost
Adds host dimension to the mapping Key. -
perMethod
Adds method dimension to the mapping Key. -
perPath
Adds path dimension to the mapping Key. -
isPerHost
protected final boolean isPerHost()Returns whether the host dimension is enabled for the mapping. -
isPerMethod
protected final boolean isPerMethod()Returns whether the method dimension is enabled for the mapping. -
isPerPath
protected final boolean isPerPath()Returns whether the path dimension is enabled for the mapping. -
validateMappingKeys
protected final boolean validateMappingKeys()Returns whether the set dimensions are valid. At least one mapping key must be set.
-