public class AsyncContextState extends Object implements org.noear.solon.core.handle.ContextAsyncListener
| 限定符和类型 | 字段和说明 |
|---|---|
CompletableFuture<Object> |
asyncFuture |
boolean |
isStarted |
| 构造器和说明 |
|---|
AsyncContextState() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(org.noear.solon.core.handle.ContextAsyncListener listener) |
void |
asyncDelay(long timeout,
org.noear.solon.core.handle.Context ctx,
org.noear.solon.core.util.RunnableEx onTimeout) |
void |
onComplete(org.noear.solon.core.handle.Context ctx) |
void |
onError(org.noear.solon.core.handle.Context ctx,
Throwable e) |
void |
onStart(org.noear.solon.core.handle.Context ctx) |
void |
onTimeout(org.noear.solon.core.handle.Context ctx) |
public boolean isStarted
public CompletableFuture<Object> asyncFuture
public void addListener(org.noear.solon.core.handle.ContextAsyncListener listener)
public void asyncDelay(long timeout,
org.noear.solon.core.handle.Context ctx,
org.noear.solon.core.util.RunnableEx onTimeout)
public void onStart(org.noear.solon.core.handle.Context ctx)
onStart 在接口中 org.noear.solon.core.handle.ContextAsyncListenerpublic void onComplete(org.noear.solon.core.handle.Context ctx)
onComplete 在接口中 org.noear.solon.core.handle.ContextAsyncListenerpublic void onTimeout(org.noear.solon.core.handle.Context ctx)
onTimeout 在接口中 org.noear.solon.core.handle.ContextAsyncListenerpublic void onError(org.noear.solon.core.handle.Context ctx,
Throwable e)
onError 在接口中 org.noear.solon.core.handle.ContextAsyncListenerCopyright © 2024. All rights reserved.