public enum HandlerChainEntry extends Enum<HandlerChainEntry>
| Enum Constant and Description |
|---|
INSTANCE
singleton
|
| Modifier and Type | Method and Description |
|---|---|
void |
onBefore(String sourceName,
io.sermant.flowcontrol.common.entity.RequestEntity requestEntity,
io.sermant.flowcontrol.common.entity.FlowControlResult flowControlResult)
pre-method
|
void |
onDubboBefore(String sourceName,
io.sermant.flowcontrol.common.entity.RequestEntity requestEntity,
io.sermant.flowcontrol.common.entity.FlowControlResult flowControlResult,
boolean isProvider)
dubbo pre-method, This distinguishes between the production end and the consumption end
|
void |
onDubboResult(String sourceName,
Object result,
boolean isProvider)
postset method
|
void |
onDubboThrow(String sourceName,
Throwable throwable,
boolean isProvider)
exceptionMethod
|
void |
onResult(String sourceName,
Object result)
postset method
|
void |
onThrow(String sourceName,
Throwable throwable)
exception method
|
static HandlerChainEntry |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HandlerChainEntry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HandlerChainEntry INSTANCE
public static HandlerChainEntry[] values()
for (HandlerChainEntry c : HandlerChainEntry.values()) System.out.println(c);
public static HandlerChainEntry valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void onBefore(String sourceName, io.sermant.flowcontrol.common.entity.RequestEntity requestEntity, io.sermant.flowcontrol.common.entity.FlowControlResult flowControlResult)
sourceName - source namerequestEntity - request bodyflowControlResult - flow control resultpublic void onDubboBefore(String sourceName, io.sermant.flowcontrol.common.entity.RequestEntity requestEntity, io.sermant.flowcontrol.common.entity.FlowControlResult flowControlResult, boolean isProvider)
sourceName - source namerequestEntity - request bodyflowControlResult - flow control resultisProvider - whether it is the production endpublic void onResult(String sourceName, Object result)
sourceName - source nameresult - execution resultpublic void onDubboResult(String sourceName, Object result, boolean isProvider)
sourceName - source nameresult - execution resultisProvider - whether it is the production endpublic void onThrow(String sourceName, Throwable throwable)
sourceName - source namethrowable - exception messageCopyright © 2025. All rights reserved.