public class AsyncCompletion<Req extends Request,Res extends Response> extends Object implements com.aliyun.ots.thirdparty.org.apache.http.concurrent.FutureCallback<Res>
| 限定符和类型 | 字段和说明 |
|---|---|
protected ExecutorService |
callbackExecutor |
protected List<TableStoreCallback<Request,Response>> |
downstreams |
protected OperationLauncher |
launcher |
protected Req |
request |
protected RetryStrategy |
retry |
protected ScheduledExecutorService |
retryExecutor |
protected TraceLogger |
tracer |
| 构造器和说明 |
|---|
AsyncCompletion(OperationLauncher launcher,
Req request,
TraceLogger tracer,
ExecutorService callbackExecutor,
RetryStrategy retry,
ScheduledExecutorService retryExecutor) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cancelled() |
void |
completed(Res result) |
void |
failed(Exception ex) |
void |
onCompleted(Req req,
Res res)
This method will be called when the user's asynchronous operation succeeds.
|
void |
onFailed(Req req,
Exception ex)
This method will be called when the user's asynchronous operation encounters an error.
|
com.alicloud.openservices.tablestore.core.AbstractWatchableCallback<Request,Response> |
watchBy(TableStoreCallback<Request,Response> downstream) |
protected OperationLauncher launcher
protected TraceLogger tracer
protected ExecutorService callbackExecutor
protected RetryStrategy retry
protected ScheduledExecutorService retryExecutor
protected List<TableStoreCallback<Request,Response>> downstreams
public AsyncCompletion(OperationLauncher launcher, Req request, TraceLogger tracer, ExecutorService callbackExecutor, RetryStrategy retry, ScheduledExecutorService retryExecutor)
public void completed(Res result)
public void failed(Exception ex)
public void cancelled()
public void onCompleted(Req req, Res res)
TableStoreCallbackonCompleted 在接口中 TableStoreCallback<Req extends Request,Res extends Response>req - The user's requestres - The result of the user's requestpublic void onFailed(Req req, Exception ex)
TableStoreCallbackonFailed 在接口中 TableStoreCallback<Req extends Request,Res extends Response>req - The user's requestex - If the request returns an invalid result or a network exception occurs, it will be a ClientException; if the exception is returned by the TableStore service, it will be a TableStoreException.public com.alicloud.openservices.tablestore.core.AbstractWatchableCallback<Request,Response> watchBy(TableStoreCallback<Request,Response> downstream)
watchBy 在接口中 WatchableCallback<Request,Response>Copyright © 2025. All Rights Reserved.