Class CircuitBreakerRuleBuilder
java.lang.Object
com.linecorp.armeria.client.AbstractRuleBuilder<CircuitBreakerRuleBuilder>
com.linecorp.armeria.client.circuitbreaker.CircuitBreakerRuleBuilder
A builder for creating a new
CircuitBreakerRule
.-
Method Summary
Modifier and TypeMethodDescriptionReturns a newly createdCircuitBreakerRule
that determines aResponse
as a failure when the rule matches.Returns a newly createdCircuitBreakerRule
that ignores aResponse
when the rule matches.Returns a newly createdCircuitBreakerRule
that determines aResponse
as a success when the rule matches.Methods inherited from class com.linecorp.armeria.client.AbstractRuleBuilder
exceptionFilter, grpcTrailersFilter, onException, onException, onException, onGrpcTrailers, onResponseHeaders, onResponseTrailers, onServerErrorStatus, onStatus, onStatus, onStatus, onStatusClass, onStatusClass, onTimeoutException, onTotalDuration, onUnprocessed, requestHeadersFilter, requiresResponseTrailers, responseHeadersFilter, responseTrailersFilter, totalDurationFilter
-
Method Details
-
thenSuccess
Returns a newly createdCircuitBreakerRule
that determines aResponse
as a success when the rule matches. -
thenFailure
Returns a newly createdCircuitBreakerRule
that determines aResponse
as a failure when the rule matches. -
thenIgnore
Returns a newly createdCircuitBreakerRule
that ignores aResponse
when the rule matches.
-