| Modifier and Type | Method and Description |
|---|---|
AsyncEntry |
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.
|
Entry |
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 |
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 entryWithType(String name, int resourceType, EntryType trafficType, int batchCount, Object[] args) throws BlockException
name - the unique name of the protected resourceresourceType - the classification of the resourcetrafficType - the traffic type (inbound, outbound or internal). This is used
to mark whether it can be blocked when the system is unstable,
only inbound traffic could be blocked by SystemRulebatchCount - the amount of calls within the invocation (e.g. batchCount=2 means request for 2 tokens)args - args for parameter flow control or customized slotsEntry of this invocation (used for mark the invocation complete and get context data)BlockException - if the block criteria is metEntry entryWithType(String name, int resourceType, EntryType trafficType, int batchCount, boolean prioritized, Object[] args) throws BlockException
name - the unique name of the protected resourceresourceType - classification of the resource (e.g. Web or RPC)trafficType - the traffic type (inbound, outbound or internal). This is used
to mark whether it can be blocked when the system is unstable,
only inbound traffic could be blocked by SystemRulebatchCount - the amount of calls within the invocation (e.g. batchCount=2 means request for 2 tokens)prioritized - whether the entry is prioritizedargs - args for parameter flow control or customized slotsEntry of this invocation (used for mark the invocation complete and get context data)BlockException - if the block criteria is metAsyncEntry asyncEntryWithType(String name, int resourceType, EntryType trafficType, int batchCount, boolean prioritized, Object[] args) throws BlockException
name - the unique name for the protected resourceresourceType - classification of the resource (e.g. Web or RPC)trafficType - the traffic type (inbound, outbound or internal). This is used
to mark whether it can be blocked when the system is unstable,
only inbound traffic could be blocked by SystemRulebatchCount - the amount of calls within the invocation (e.g. batchCount=2 means request for 2 tokens)prioritized - whether the entry is prioritizedargs - args for parameter flow control or customized slotsEntry of this invocation (used for mark the invocation complete and get context data)BlockException - if the block criteria is metCopyright © 2021 Alibaba Group. All rights reserved.