Class AbstractCircuitBreakerMappingBuilder

java.lang.Object
com.linecorp.armeria.client.circuitbreaker.AbstractCircuitBreakerMappingBuilder
Direct Known Subclasses:
CircuitBreakerMappingBuilder, Resilience4jCircuitBreakerMappingBuilder

@UnstableApi public abstract class AbstractCircuitBreakerMappingBuilder extends Object
An abstract builder class for building a CircuitBreakerMapping based on a combination of host, method and path.
  • 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.