类的使用
com.alibaba.csp.sentinel.slots.block.BlockException
使用BlockException的程序包
程序包
说明
-
com.alibaba.csp.sentinel中BlockException的使用
参数类型为BlockException的com.alibaba.csp.sentinel中的方法修饰符和类型方法说明CtSph.asyncEntry(String name, EntryType type, int count, Object... args) Sph.asyncEntry(String name, EntryType trafficType, int batchCount, Object... args) Create a protected asynchronous resource.static AsyncEntrySphU.asyncEntry(String name) Record statistics and check all rules of the resource that indicates an async invocation.static AsyncEntrySphU.asyncEntry(String name, int resourceType, EntryType trafficType) Record statistics and perform rule checking for the given resource that indicates an async invocation.static AsyncEntrySphU.asyncEntry(String name, int resourceType, EntryType trafficType, int batchCount, Object[] args) Record statistics and perform rule checking for the given resource that indicates an async invocation.static AsyncEntrySphU.asyncEntry(String name, int resourceType, EntryType trafficType, Object[] args) Record statistics and perform rule checking for the given resource that indicates an async invocation.static AsyncEntrySphU.asyncEntry(String name, EntryType trafficType) Record statistics and check all rules of the resource that indicates an async invocation.static AsyncEntrySphU.asyncEntry(String name, EntryType trafficType, int batchCount, Object... args) Record statistics and check all rules of the resource that indicates an async invocation.CtSph.asyncEntryWithType(String name, int resourceType, EntryType entryType, int count, boolean prioritized, Object[] args) SphResourceTypeSupport.asyncEntryWithType(String name, int resourceType, EntryType trafficType, int batchCount, boolean prioritized, Object[] args) Record statistics and perform rule checking for the given resource that indicates an async invocation.CtSph.entry(ResourceWrapper resourceWrapper, int count, Object... args) Do allRules checking about the resource.Record statistics and perform rule checking for the given method.Record statistics and perform rule checking for the given method.Record statistics and perform rule checking for the given method.Record statistics and perform rule checking for the given method.Record statistics and perform rule checking for the given resource.Record statistics and perform rule checking for the given resource.Record statistics and perform rule checking for the given resource.Record statistics and perform rule checking for the given resource.Record statistics and perform rule checking for the given resource.Record statistics and perform rule checking for the given resource.static EntryChecking allRules about the protected method.static EntryChecking allRules about the protected method.static EntryChecking allRules about the protected method.static EntryChecking allRules about the protected method.static EntryChecking allRules about the protected method.static EntryRecord statistics and perform rule checking for the given resource.static EntryRecord statistics and perform rule checking for the given resource.static EntryRecord statistics and perform rule checking for the given resource.static EntryRecord statistics and perform rule checking for the given resource.static EntryRecord statistics and perform rule checking for the given resource.static EntryRecord statistics and perform rule checking for the given resource.static EntryRecord statistics and perform rule checking for the given resource.CtSph.entryWithPriority(String name, EntryType type, int count, boolean prioritized) CtSph.entryWithPriority(String name, EntryType type, int count, boolean prioritized, Object... args) Sph.entryWithPriority(String name, EntryType trafficType, int batchCount, boolean prioritized) Create a protected resource with priority.Sph.entryWithPriority(String name, EntryType trafficType, int batchCount, boolean prioritized, Object... args) Create a protected resource with priority.static EntrySphU.entryWithPriority(String name) Record statistics and perform rule checking for the given resource.static EntrySphU.entryWithPriority(String name, EntryType trafficType) Record statistics and perform rule checking for the given resource.CtSph.entryWithType(String name, int resourceType, EntryType entryType, int count, boolean prioritized, Object[] args) CtSph.entryWithType(String name, int resourceType, EntryType entryType, int count, Object[] args) SphResourceTypeSupport.entryWithType(String name, int resourceType, EntryType trafficType, int batchCount, boolean prioritized, Object[] args) Record statistics and perform rule checking for the given resource with the provided classification.SphResourceTypeSupport.entryWithType(String name, int resourceType, EntryType trafficType, int batchCount, Object[] args) Record statistics and perform rule checking for the given resource with provided classification. -
com.alibaba.csp.sentinel.metric.extension中BlockException的使用
修饰符和类型方法说明voidMetricExtension.addBlock(String resource, int n, String origin, BlockException blockException, Object... args) Add current block count of the resource name.voidAdvancedMetricExtension.onBlocked(ResourceWrapper rw, int batchCount, String origin, BlockException e, Object[] args) Add current block count of the resource name. -
com.alibaba.csp.sentinel.metric.extension.callback中BlockException的使用
修饰符和类型方法说明voidMetricEntryCallback.onBlocked(BlockException ex, Context context, ResourceWrapper resourceWrapper, DefaultNode param, int count, Object... args) -
com.alibaba.csp.sentinel.slotchain中BlockException的使用
修饰符和类型方法说明voidProcessorSlotEntryCallback.onBlocked(BlockException ex, Context context, ResourceWrapper resourceWrapper, T param, int count, Object... args) -
com.alibaba.csp.sentinel.slots.block.authority中BlockException的使用
-
com.alibaba.csp.sentinel.slots.block.degrade中BlockException的使用
-
com.alibaba.csp.sentinel.slots.block.flow中BlockException的使用
修饰符和类型方法说明voidFlowRuleChecker.checkFlow(Function<String, Collection<FlowRule>> ruleProvider, ResourceWrapper resource, Context context, DefaultNode node, int count, boolean prioritized) -
com.alibaba.csp.sentinel.slots.system中BlockException的使用
修饰符和类型方法说明static voidSystemRuleManager.checkSystem(ResourceWrapper resourceWrapper, int count) ApplySystemRuleto the resource.