Class CircuitBreakerMappingBuilder
java.lang.Object
com.linecorp.armeria.client.circuitbreaker.AbstractCircuitBreakerMappingBuilder
com.linecorp.armeria.client.circuitbreaker.CircuitBreakerMappingBuilder
Builder class for building a
CircuitBreakerMapping
based on a combination of host, method and path.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(CircuitBreakerFactory factory) Returns a newly-createdCircuitBreakerMapping
with the specifiedCircuitBreakerFactory
and properties set so far.perHost()
Adds host dimension to the mapping Key.Adds method dimension to the mapping Key.perPath()
Adds path dimension to the mapping Key.Methods inherited from class com.linecorp.armeria.client.circuitbreaker.AbstractCircuitBreakerMappingBuilder
isPerHost, isPerMethod, isPerPath, validateMappingKeys
-
Constructor Details
-
CircuitBreakerMappingBuilder
public CircuitBreakerMappingBuilder()
-
-
Method Details
-
perHost
Description copied from class:AbstractCircuitBreakerMappingBuilder
Adds host dimension to the mapping Key.- Overrides:
perHost
in classAbstractCircuitBreakerMappingBuilder
-
perMethod
Description copied from class:AbstractCircuitBreakerMappingBuilder
Adds method dimension to the mapping Key.- Overrides:
perMethod
in classAbstractCircuitBreakerMappingBuilder
-
perPath
Description copied from class:AbstractCircuitBreakerMappingBuilder
Adds path dimension to the mapping Key.- Overrides:
perPath
in classAbstractCircuitBreakerMappingBuilder
-
build
Returns a newly-createdCircuitBreakerMapping
with the specifiedCircuitBreakerFactory
and properties set so far.
-