类 AsyncEntry

java.lang.Object
com.alibaba.csp.sentinel.Entry
com.alibaba.csp.sentinel.AsyncEntry
所有已实现的接口:
AutoCloseable

public class AsyncEntry extends Entry
The entry for asynchronous resources.
从以下版本开始:
0.2.0
作者:
Eric Zhao
  • 字段详细资料

  • 方法详细资料

    • getAsyncContext

      public Context getAsyncContext()
    • clearEntryContext

      protected void clearEntryContext()
    • trueExit

      protected Entry trueExit(int count, Object... args) throws ErrorEntryFreeException
      从类复制的说明: Entry
      Exit this entry.
      参数:
      count - tokens to release.
      args - extra parameters
      返回:
      next available entry after exit, that is the parent entry.
      抛出:
      ErrorEntryFreeException
    • exit

      public void exit(int count, Object... args) throws ErrorEntryFreeException
      从类复制的说明: Entry
      Exit 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
      抛出:
      ErrorEntryFreeException
    • whenTerminate

      public void whenTerminate(BiConsumer<Context,Entry> handler)
      从类复制的说明: Entry
      Like CompletableFuture since 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

      public Node getLastNode()
      从类复制的说明: Entry
      Get related Node of the parent Entry.
      指定者:
      getLastNode 在类中 Entry
      返回: