类 DefaultProcessorSlotChain
java.lang.Object
com.alibaba.csp.sentinel.slotchain.AbstractLinkedProcessorSlot<Object>
com.alibaba.csp.sentinel.slotchain.ProcessorSlotChain
com.alibaba.csp.sentinel.slotchain.DefaultProcessorSlotChain
- 所有已实现的接口:
ProcessorSlot<Object>
- 作者:
- qinan.qn, jialiang.linjl
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddFirst(AbstractLinkedProcessorSlot<?> protocolProcessor) Add a processor to the head of this slot chain.voidaddLast(AbstractLinkedProcessorSlot<?> protocolProcessor) Add a processor to the tail of this slot chain.voidentry(Context context, ResourceWrapper resourceWrapper, Object t, int count, boolean prioritized, Object... args) Entrance of this slot.voidexit(Context context, ResourceWrapper resourceWrapper, int count, Object... args) Exit of this slot.getNext()voidsetNext(AbstractLinkedProcessorSlot<?> next) Same asaddLast(AbstractLinkedProcessorSlot).从类继承的方法 com.alibaba.csp.sentinel.slotchain.AbstractLinkedProcessorSlot
fireEntry, fireExit
-
构造器详细资料
-
DefaultProcessorSlotChain
public DefaultProcessorSlotChain()
-
-
方法详细资料
-
addFirst
从类复制的说明:ProcessorSlotChainAdd a processor to the head of this slot chain.- 指定者:
addFirst在类中ProcessorSlotChain- 参数:
protocolProcessor- processor to be added.
-
addLast
从类复制的说明:ProcessorSlotChainAdd a processor to the tail of this slot chain.- 指定者:
addLast在类中ProcessorSlotChain- 参数:
protocolProcessor- processor to be added.
-
setNext
Same asaddLast(AbstractLinkedProcessorSlot).- 覆盖:
setNext在类中AbstractLinkedProcessorSlot<Object>- 参数:
next- processor to be added.
-
getNext
- 覆盖:
getNext在类中AbstractLinkedProcessorSlot<Object>
-
entry
public void entry(Context context, ResourceWrapper resourceWrapper, Object t, int count, boolean prioritized, Object... args) throws Throwable 从接口复制的说明:ProcessorSlotEntrance of this slot. -
exit
从接口复制的说明:ProcessorSlotExit of this slot.- 参数:
context- currentContextresourceWrapper- current resourcecount- tokens neededargs- parameters of the original call
-