| Modifier and Type | Method and Description |
|---|---|
Context |
AsyncEntry.getAsyncContext() |
| Modifier and Type | Method and Description |
|---|---|
static void |
Tracer.traceContext(Throwable e,
Context context)
Trace provided
Throwable to current entry of given entrance context. |
static void |
Tracer.traceContext(Throwable e,
int count,
Context context)
Deprecated.
|
| 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 | Class and Description |
|---|---|
class |
NullContext
If total
Context exceed Constants.MAX_CONTEXT_NAME_SIZE, a
NullContext will get when invoke ContextUtil.enter(), means
no rules checking will do. |
| Modifier and Type | Method and Description |
|---|---|
static Context |
ContextUtil.enter(String name)
Enter the invocation context, which marks as the entrance of an invocation chain.
|
static Context |
ContextUtil.enter(String name,
String origin)
Enter the invocation context, which marks as the entrance of an invocation chain.
|
static Context |
ContextUtil.getContext()
Get
Context of current thread. |
static Context |
Context.newAsyncContext(DefaultNode entranceNode,
String name)
Create a new async context.
|
Context |
Context.setCurEntry(Entry curEntry) |
Context |
Context.setCurNode(Node node) |
Context |
Context.setOrigin(String origin) |
protected static Context |
ContextUtil.trueEnter(String name,
String origin) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ContextUtil.isDefaultContext(Context context)
Check if provided context is a default auto-created context.
|
static void |
ContextUtil.runOnContext(Context context,
Runnable f)
Execute the code within provided context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MetricEntryCallback.onBlocked(BlockException ex,
Context context,
ResourceWrapper resourceWrapper,
DefaultNode param,
int count,
Object... args) |
void |
MetricExitCallback.onExit(Context context,
ResourceWrapper rw,
int acquireCount,
Object... args) |
void |
MetricEntryCallback.onPass(Context context,
ResourceWrapper rw,
DefaultNode param,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultProcessorSlotChain.entry(Context context,
ResourceWrapper resourceWrapper,
Object t,
int count,
boolean prioritized,
Object... args) |
void |
ProcessorSlot.entry(Context context,
ResourceWrapper resourceWrapper,
T param,
int count,
boolean prioritized,
Object... args)
Entrance of this slot.
|
void |
DefaultProcessorSlotChain.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
void |
ProcessorSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args)
Exit of this slot.
|
void |
ProcessorSlot.fireEntry(Context context,
ResourceWrapper resourceWrapper,
Object obj,
int count,
boolean prioritized,
Object... args)
|
void |
AbstractLinkedProcessorSlot.fireEntry(Context context,
ResourceWrapper resourceWrapper,
Object obj,
int count,
boolean prioritized,
Object... args) |
void |
ProcessorSlot.fireExit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args)
Means finish of
ProcessorSlot.exit(Context, ResourceWrapper, int, Object...). |
void |
AbstractLinkedProcessorSlot.fireExit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
void |
ProcessorSlotEntryCallback.onBlocked(BlockException ex,
Context context,
ResourceWrapper resourceWrapper,
T param,
int count,
Object... args) |
void |
ProcessorSlotExitCallback.onExit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
void |
ProcessorSlotEntryCallback.onPass(Context context,
ResourceWrapper resourceWrapper,
T param,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
AuthoritySlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
boolean prioritized,
Object... args) |
void |
AuthoritySlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
DegradeSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
boolean prioritized,
Object... args) |
void |
DegradeSlot.exit(Context context,
ResourceWrapper r,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
AbstractCircuitBreaker.fromOpenToHalfOpen(Context context) |
void |
ResponseTimeCircuitBreaker.onRequestComplete(Context context) |
void |
ExceptionCircuitBreaker.onRequestComplete(Context context) |
void |
CircuitBreaker.onRequestComplete(Context context)
Record a completed request with the context and handle state transformation of the circuit breaker.
|
boolean |
AbstractCircuitBreaker.tryPass(Context context) |
boolean |
CircuitBreaker.tryPass(Context context)
Acquires permission of an invocation only if it is available at the time of invoking.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
FlowRuleChecker.canPassCheck(FlowRule rule,
Context context,
DefaultNode node,
int acquireCount) |
boolean |
FlowRuleChecker.canPassCheck(FlowRule rule,
Context context,
DefaultNode node,
int acquireCount,
boolean prioritized) |
void |
FlowRuleChecker.checkFlow(Function<String,Collection<FlowRule>> ruleProvider,
ResourceWrapper resource,
Context context,
DefaultNode node,
int count,
boolean prioritized) |
void |
FlowSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
boolean prioritized,
Object... args) |
void |
FlowSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
ClusterBuilderSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
boolean prioritized,
Object... args) |
void |
ClusterBuilderSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
LogSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode obj,
int count,
boolean prioritized,
Object... args) |
void |
LogSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
NodeSelectorSlot.entry(Context context,
ResourceWrapper resourceWrapper,
Object obj,
int count,
boolean prioritized,
Object... args) |
void |
NodeSelectorSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
StatisticSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
boolean prioritized,
Object... args) |
void |
StatisticSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
SystemSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
boolean prioritized,
Object... args) |
void |
SystemSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
Copyright © 2021 Alibaba Group. All rights reserved.