类 AsyncEntry
java.lang.Object
com.alibaba.csp.sentinel.Entry
com.alibaba.csp.sentinel.AsyncEntry
- 所有已实现的接口:
AutoCloseable
The entry for asynchronous resources.
- 从以下版本开始:
- 0.2.0
- 作者:
- Eric Zhao
-
字段概要
字段修饰符和类型字段说明protected ProcessorSlot<Object>protected Entryprotected Contextprotected LinkedList<BiConsumer<Context,Entry>> protected Entry从类继承的字段 com.alibaba.csp.sentinel.Entry
args, count, OBJECTS0, resourceWrapper -
方法概要
修饰符和类型方法说明protected voidvoidExit this entry.protected voidexitForContext(Context context, int count, Object... args) protected EntryExit this entry.voidwhenTerminate(BiConsumer<Context, Entry> handler) LikeCompletableFuturesince JDK 8, it guarantees specified handler is invoked when this entry terminated (exited), no matter it's blocked or permitted.从类继承的方法 com.alibaba.csp.sentinel.Entry
close, exit, exit, getBlockError, getCompleteTimestamp, getCreateTimestamp, getCurNode, getError, getOriginNode, getResourceWrapper, setBlockError, setCompleteTimestamp, setCurNode, setError, setOriginNode
-
字段详细资料
-
parent
-
child
-
chain
-
context
-
exitHandlers
-
-
方法详细资料
-
getAsyncContext
-
clearEntryContext
protected void clearEntryContext() -
trueExit
从类复制的说明:EntryExit this entry.- 参数:
count- tokens to release.args- extra parameters- 返回:
- next available entry after exit, that is the parent entry.
- 抛出:
ErrorEntryFreeException
-
exit
从类复制的说明:EntryExit this entry. This method should invoke if and only if once at the end of the resource protection.- 指定者:
exit在类中Entry- 参数:
count- tokens to release.args- extra parameters- 抛出:
ErrorEntryFreeException
-
exitForContext
protected void exitForContext(Context context, int count, Object... args) throws ErrorEntryFreeException -
whenTerminate
从类复制的说明:EntryLikeCompletableFuturesince JDK 8, it guarantees specified handler is invoked when this entry terminated (exited), no matter it's blocked or permitted. Use it when you did some STATEFUL operations on entries.- 指定者:
whenTerminate在类中Entry- 参数:
handler- handler function on the invocation terminates
-
getLastNode
从类复制的说明:Entry- 指定者:
getLastNode在类中Entry- 返回:
-