public class AsyncContextState extends java.lang.Object implements ContextAsyncListener
| 限定符和类型 | 字段和说明 |
|---|---|
java.util.concurrent.CompletableFuture<java.lang.Object> |
asyncFuture |
boolean |
isStarted |
| 构造器和说明 |
|---|
AsyncContextState() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(ContextAsyncListener listener) |
void |
asyncDelay(long timeout,
Context ctx,
RunnableEx onTimeout) |
void |
onComplete(Context ctx)
完成
|
void |
onError(Context ctx,
java.lang.Throwable e)
出错
|
void |
onStart(Context ctx)
开始
|
void |
onTimeout(Context ctx)
超时
|
public boolean isStarted
public java.util.concurrent.CompletableFuture<java.lang.Object> asyncFuture
public void addListener(ContextAsyncListener listener)
public void asyncDelay(long timeout,
Context ctx,
RunnableEx onTimeout)
public void onStart(Context ctx)
ContextAsyncListeneronStart 在接口中 ContextAsyncListenerctx - 请求上下文public void onComplete(Context ctx)
ContextAsyncListeneronComplete 在接口中 ContextAsyncListenerctx - 请求上下文public void onTimeout(Context ctx)
ContextAsyncListeneronTimeout 在接口中 ContextAsyncListenerctx - 请求上下文public void onError(Context ctx, java.lang.Throwable e)
ContextAsyncListeneronError 在接口中 ContextAsyncListenerctx - 请求上下文e - 异步