类 StatisticSlot
java.lang.Object
com.alibaba.csp.sentinel.slotchain.AbstractLinkedProcessorSlot<DefaultNode>
com.alibaba.csp.sentinel.slots.statistic.StatisticSlot
- 所有已实现的接口:
ProcessorSlot<DefaultNode>
A processor slot that dedicates to real time statistics. When entering this slot, we need to separately count the following information:
ClusterNode: total statistics of a cluster node of the resource ID.- Origin node: statistics of a cluster node from different callers/origins.
DefaultNode: statistics for specific resource name in the specific context.- Finally, the sum statistics of all entrances.
- 作者:
- jialiang.linjl, Eric Zhao
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidentry(Context context, ResourceWrapper resourceWrapper, DefaultNode node, int count, boolean prioritized, Object... args) Entrance of this slot.voidexit(Context context, ResourceWrapper resourceWrapper, int count, Object... args) Exit of this slot.从类继承的方法 com.alibaba.csp.sentinel.slotchain.AbstractLinkedProcessorSlot
fireEntry, fireExit, getNext, setNext
-
构造器详细资料
-
StatisticSlot
public StatisticSlot()
-
-
方法详细资料
-
entry
public void entry(Context context, ResourceWrapper resourceWrapper, DefaultNode node, 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
-