Class CircuitBreakerClientBuilder
java.lang.Object
com.linecorp.armeria.client.circuitbreaker.AbstractCircuitBreakerClientBuilder<HttpResponse>
com.linecorp.armeria.client.circuitbreaker.CircuitBreakerClientBuilder
public final class CircuitBreakerClientBuilder
extends AbstractCircuitBreakerClientBuilder<HttpResponse>
Builds a new
CircuitBreakerClient
or its decorator function.-
Method Summary
Modifier and TypeMethodDescriptionbuild
(HttpClient delegate) Returns a newly-createdCircuitBreakerClient
based on the properties of this builder.mapping
(CircuitBreakerMapping mapping) Sets theCircuitBreakerMapping
.Function<? super HttpClient,
CircuitBreakerClient> Returns a newly-created decorator that decorates anHttpClient
with a newCircuitBreakerClient
based on the properties of this builder.Methods inherited from class com.linecorp.armeria.client.circuitbreaker.AbstractCircuitBreakerClientBuilder
toString
-
Method Details
-
build
Returns a newly-createdCircuitBreakerClient
based on the properties of this builder. -
newDecorator
Returns a newly-created decorator that decorates anHttpClient
with a newCircuitBreakerClient
based on the properties of this builder. -
mapping
Description copied from class:AbstractCircuitBreakerClientBuilder
Sets theCircuitBreakerMapping
. If unspecified,CircuitBreakerMapping.ofDefault()
will be used.- Overrides:
mapping
in classAbstractCircuitBreakerClientBuilder<HttpResponse>
- Returns:
this
to support method chaining.
-