public class CircuitBreakerRequestHandler extends FlowControlHandler<io.github.resilience4j.circuitbreaker.CircuitBreaker>
XDS_FLOW_CONTROL_CONFIG| Constructor and Description |
|---|
CircuitBreakerRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getContextName()
Get the name of the current cache context
|
protected CircuitBreakerHandler |
getHandler()
Get the controller
|
int |
getOrder()
priority
|
protected String |
getStartTime()
Get the start time of the current cache context
|
protected boolean |
isSkip(RequestContext context,
io.sermant.flowcontrol.common.entity.FlowControlScenario scenario)
whether to skip the current handler
|
void |
onBefore(RequestContext context,
io.sermant.flowcontrol.common.entity.FlowControlScenario flowControlScenario)
request processing
|
void |
onResult(RequestContext context,
io.sermant.flowcontrol.common.entity.FlowControlScenario scenario,
Object result)
response processing
|
void |
onThrow(RequestContext context,
io.sermant.flowcontrol.common.entity.FlowControlScenario scenario,
Throwable throwable)
response processing
|
getHandlersFromCachepublic void onBefore(RequestContext context, io.sermant.flowcontrol.common.entity.FlowControlScenario flowControlScenario)
RequestHandleronBefore in interface RequestHandleronBefore in class AbstractChainHandlercontext - request contextflowControlScenario - matched business informationpublic void onThrow(RequestContext context, io.sermant.flowcontrol.common.entity.FlowControlScenario scenario, Throwable throwable)
RequestHandleronThrow in interface RequestHandleronThrow in class AbstractChainHandlercontext - request contextscenario - matched business informationthrowable - throwablepublic void onResult(RequestContext context, io.sermant.flowcontrol.common.entity.FlowControlScenario scenario, Object result)
RequestHandleronResult in interface RequestHandleronResult in class AbstractChainHandlercontext - request contextscenario - matched business informationresult - response resultprotected boolean isSkip(RequestContext context, io.sermant.flowcontrol.common.entity.FlowControlScenario scenario)
AbstractChainHandlerisSkip in class FlowControlHandler<io.github.resilience4j.circuitbreaker.CircuitBreaker>context - requestContextscenario - matched scenario informationprotected String getContextName()
getContextName in class FlowControlHandler<io.github.resilience4j.circuitbreaker.CircuitBreaker>protected String getStartTime()
public int getOrder()
RequestHandlerprotected CircuitBreakerHandler getHandler()
Copyright © 2025. All rights reserved.