| Package | Description |
|---|---|
| com.alibaba.csp.sentinel | |
| com.alibaba.csp.sentinel.context |
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncEntry
The entry for asynchronous resources.
|
| Modifier and Type | Method and Description |
|---|---|
Entry |
Sph.entry(Method method)
Record statistics and perform rule checking for the given method.
|
static Entry |
SphU.entry(Method method)
Checking all
Rules about the protected method. |
Entry |
CtSph.entry(Method method) |
Entry |
Sph.entry(Method method,
EntryType trafficType)
Record statistics and perform rule checking for the given method.
|
static Entry |
SphU.entry(Method method,
EntryType trafficType)
Checking all
Rules about the protected method. |
Entry |
CtSph.entry(Method method,
EntryType type) |
Entry |
Sph.entry(Method method,
EntryType trafficType,
int batchCount)
Record statistics and perform rule checking for the given method.
|
static Entry |
SphU.entry(Method method,
EntryType trafficType,
int batchCount)
Checking all
Rules about the protected method. |
Entry |
CtSph.entry(Method method,
EntryType type,
int count) |
Entry |
Sph.entry(Method method,
EntryType trafficType,
int batchCount,
Object... args)
Record statistics and perform rule checking for the given resource.
|
static Entry |
SphU.entry(Method method,
EntryType trafficType,
int batchCount,
Object... args)
Checking all
Rules about the protected method. |
Entry |
CtSph.entry(Method method,
EntryType type,
int count,
Object... args) |
Entry |
Sph.entry(Method method,
int batchCount)
Record statistics and perform rule checking for the given method.
|
static Entry |
SphU.entry(Method method,
int batchCount)
Checking all
Rules about the protected method. |
Entry |
CtSph.entry(Method method,
int count) |
Entry |
CtSph.entry(ResourceWrapper resourceWrapper,
int count,
Object... args)
Do all
Rules checking about the resource. |
Entry |
Sph.entry(String name)
Record statistics and perform rule checking for the given resource.
|
static Entry |
SphU.entry(String name)
Record statistics and perform rule checking for the given resource.
|
Entry |
CtSph.entry(String name) |
Entry |
Sph.entry(String name,
EntryType trafficType)
Record statistics and perform rule checking for the given resource.
|
static Entry |
SphU.entry(String name,
EntryType trafficType)
Record statistics and perform rule checking for the given resource.
|
Entry |
CtSph.entry(String name,
EntryType type) |
Entry |
Sph.entry(String name,
EntryType trafficType,
int batchCount)
Record statistics and perform rule checking for the given resource.
|
static Entry |
SphU.entry(String name,
EntryType trafficType,
int batchCount)
Record statistics and perform rule checking for the given resource.
|
Entry |
CtSph.entry(String name,
EntryType type,
int count) |
Entry |
Sph.entry(String name,
EntryType trafficType,
int batchCount,
Object... args)
Record statistics and perform rule checking for the given resource.
|
static Entry |
SphU.entry(String name,
EntryType trafficType,
int batchCount,
Object... args)
Record statistics and perform rule checking for the given resource.
|
Entry |
CtSph.entry(String name,
EntryType type,
int count,
Object... args) |
Entry |
Sph.entry(String name,
int batchCount)
Record statistics and perform rule checking for the given resource.
|
static Entry |
SphU.entry(String name,
int batchCount)
Record statistics and perform rule checking for the given resource.
|
Entry |
CtSph.entry(String name,
int count) |
static Entry |
SphU.entry(String name,
int resourceType,
EntryType trafficType)
Record statistics and perform rule checking for the given resource.
|
static Entry |
SphU.entry(String name,
int resourceType,
EntryType trafficType,
Object[] args)
Record statistics and perform rule checking for the given resource.
|
static Entry |
SphU.entryWithPriority(String name)
Record statistics and perform rule checking for the given resource.
|
static Entry |
SphU.entryWithPriority(String name,
EntryType trafficType)
Record statistics and perform rule checking for the given resource.
|
Entry |
Sph.entryWithPriority(String name,
EntryType trafficType,
int batchCount,
boolean prioritized)
Create a protected resource with priority.
|
Entry |
CtSph.entryWithPriority(String name,
EntryType type,
int count,
boolean prioritized) |
Entry |
Sph.entryWithPriority(String name,
EntryType trafficType,
int batchCount,
boolean prioritized,
Object... args)
Create a protected resource with priority.
|
Entry |
CtSph.entryWithPriority(String name,
EntryType type,
int count,
boolean prioritized,
Object... args) |
Entry |
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.
|
Entry |
CtSph.entryWithType(String name,
int resourceType,
EntryType entryType,
int count,
boolean prioritized,
Object[] args) |
Entry |
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.
|
Entry |
CtSph.entryWithType(String name,
int resourceType,
EntryType entryType,
int count,
Object[] args) |
Entry |
Entry.setBlockError(BlockException blockError) |
Entry |
Entry.setCompleteTimestamp(long completeTimestamp) |
protected Entry |
AsyncEntry.trueExit(int count,
Object... args) |
protected abstract Entry |
Entry.trueExit(int count,
Object... args)
Exit this entry.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Tracer.traceEntry(Throwable e,
Entry entry)
Trace provided
Throwable to the given resource entry. |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Entry.whenTerminate(BiConsumer<Context,Entry> handler)
Like
CompletableFuture since JDK 8, it guarantees specified handler
is invoked when this entry terminated (exited), no matter it's blocked or permitted. |
| Modifier and Type | Method and Description |
|---|---|
Entry |
Context.getCurEntry() |
| Modifier and Type | Method and Description |
|---|---|
Context |
Context.setCurEntry(Entry curEntry) |
Copyright © 2021 Alibaba Group. All rights reserved.