类 DefaultCircuitBreakerSlot

java.lang.Object
com.alibaba.csp.sentinel.slotchain.AbstractLinkedProcessorSlot<DefaultNode>
com.alibaba.csp.sentinel.slots.block.degrade.DefaultCircuitBreakerSlot
所有已实现的接口:
ProcessorSlot<DefaultNode>

@Spi(order=-1500) public class DefaultCircuitBreakerSlot extends AbstractLinkedProcessorSlot<DefaultNode>

A ProcessorSlot dedicates to universal default circuit breaker.

从以下版本开始:
2.0.0
作者:
wuwen
  • 构造器详细资料

    • DefaultCircuitBreakerSlot

      public DefaultCircuitBreakerSlot()
  • 方法详细资料

    • entry

      public void entry(Context context, ResourceWrapper resourceWrapper, DefaultNode node, int count, boolean prioritized, Object... args) throws Throwable
      从接口复制的说明: ProcessorSlot
      Entrance of this slot.
      参数:
      context - current Context
      resourceWrapper - current resource
      node - generics parameter, usually is a Node
      count - tokens needed
      prioritized - whether the entry is prioritized
      args - parameters of the original call
      抛出:
      Throwable - blocked exception or unexpected error
    • exit

      public void exit(Context context, ResourceWrapper r, int count, Object... args)
      从接口复制的说明: ProcessorSlot
      Exit of this slot.
      参数:
      context - current Context
      r - current resource
      count - tokens needed
      args - parameters of the original call