接口 ProcessorSlot<T>
- 所有已知实现类:
AbstractLinkedProcessorSlot,AuthoritySlot,ClusterBuilderSlot,DefaultCircuitBreakerSlot,DefaultProcessorSlotChain,DegradeSlot,FlowSlot,LogSlot,NodeSelectorSlot,ProcessorSlotChain,StatisticSlot,SystemSlot
public interface ProcessorSlot<T>
A container of some process and ways of notification when the process is finished.
- 作者:
- qinan.qn, jialiang.linjl, leyou(lihao), Eric Zhao
-
方法概要
修饰符和类型方法说明voidentry(Context context, ResourceWrapper resourceWrapper, T param, int count, boolean prioritized, Object... args) Entrance of this slot.voidexit(Context context, ResourceWrapper resourceWrapper, int count, Object... args) Exit of this slot.voidfireEntry(Context context, ResourceWrapper resourceWrapper, Object obj, int count, boolean prioritized, Object... args) Means finish ofentry(Context, ResourceWrapper, Object, int, boolean, Object...).voidfireExit(Context context, ResourceWrapper resourceWrapper, int count, Object... args) Means finish ofexit(Context, ResourceWrapper, int, Object...).
-
方法详细资料
-
entry
void entry(Context context, ResourceWrapper resourceWrapper, T param, int count, boolean prioritized, Object... args) throws Throwable Entrance of this slot. -
fireEntry
void fireEntry(Context context, ResourceWrapper resourceWrapper, Object obj, int count, boolean prioritized, Object... args) throws Throwable Means finish ofentry(Context, ResourceWrapper, Object, int, boolean, Object...). -
exit
Exit of this slot.- 参数:
context- currentContextresourceWrapper- current resourcecount- tokens neededargs- parameters of the original call
-
fireExit
Means finish ofexit(Context, ResourceWrapper, int, Object...).- 参数:
context- currentContextresourceWrapper- current resourcecount- tokens neededargs- parameters of the original call
-