public class YopSph extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
YopSph.BlockResourcePool |
| 构造器和说明 |
|---|
YopSph() |
public static YopSph getInstance()
public com.alibaba.csp.sentinel.Entry entry(com.alibaba.csp.sentinel.slotchain.ResourceWrapper resourceWrapper,
int count,
Object... args)
throws com.alibaba.csp.sentinel.slots.block.BlockException
Rules checking about the resource.
Each distinct resource will use a ProcessorSlot to do rules checking. Same resource will use
same ProcessorSlot globally.
Note that total ProcessorSlot count must not exceed Constants.MAX_SLOT_CHAIN_SIZE,
otherwise no rules checking will do. In this condition, all requests will pass directly, with no checking
or exception.
resourceWrapper - resource namecount - tokens neededargs - arguments of user method callEntry represents this callcom.alibaba.csp.sentinel.slots.block.BlockException - if any rule's threshold is exceededpublic com.alibaba.csp.sentinel.Entry entry(String name) throws com.alibaba.csp.sentinel.slots.block.BlockException
com.alibaba.csp.sentinel.slots.block.BlockExceptionCopyright © 2024. All rights reserved.