use of com.alibaba.csp.sentinel.slotchain.ProcessorSlotChain in project Sentinel by alibaba.
the class CtSphTest method addShouldPassSlotFor.
private ShouldPassSlot addShouldPassSlotFor(ResourceWrapper resourceWrapper) {
ProcessorSlotChain slotChain = new DefaultProcessorSlotChain();
ShouldPassSlot shouldPassSlot = new ShouldPassSlot();
slotChain.addLast(shouldPassSlot);
CtSph.getChainMap().put(resourceWrapper, slotChain);
return shouldPassSlot;
}
Aggregations