接口 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
  • 方法详细资料

    • entry

      void entry(Context context, ResourceWrapper resourceWrapper, T param, int count, boolean prioritized, Object... args) throws Throwable
      Entrance of this slot.
      参数:
      context - current Context
      resourceWrapper - current resource
      param - 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
    • fireEntry

      void fireEntry(Context context, ResourceWrapper resourceWrapper, Object obj, int count, boolean prioritized, Object... args) throws Throwable
      参数:
      context - current Context
      resourceWrapper - current resource
      obj - relevant object (e.g. Node)
      count - tokens needed
      prioritized - whether the entry is prioritized
      args - parameters of the original call
      抛出:
      Throwable - blocked exception or unexpected error
    • exit

      void exit(Context context, ResourceWrapper resourceWrapper, int count, Object... args)
      Exit of this slot.
      参数:
      context - current Context
      resourceWrapper - current resource
      count - tokens needed
      args - parameters of the original call
    • fireExit

      void fireExit(Context context, ResourceWrapper resourceWrapper, int count, Object... args)
      参数:
      context - current Context
      resourceWrapper - current resource
      count - tokens needed
      args - parameters of the original call