public class CallbackImpledFuture<Req,Res> extends Object implements Future<Res>
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<TableStoreCallback<Request,Response>> |
downstreams |
| 构造器和说明 |
|---|
CallbackImpledFuture() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Res |
get() |
Res |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
onCompleted(Req request,
Res result)
This method will be called when the user's asynchronous operation succeeds.
|
void |
onFailed(Req request,
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 List<TableStoreCallback<Request,Response>> downstreams
public void onCompleted(Req request, Res result)
TableStoreCallbackonCompleted 在接口中 TableStoreCallback<Req,Res>request - The user's requestresult - The result of the user's requestpublic void onFailed(Req request, Exception ex)
TableStoreCallbackonFailed 在接口中 TableStoreCallback<Req,Res>request - 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 boolean isCancelled()
isCancelled 在接口中 Future<Res>public Res get() throws InterruptedException, ExecutionException
get 在接口中 Future<Res>InterruptedExceptionExecutionExceptionpublic Res get(long timeout, TimeUnit unit) throws TimeoutException, InterruptedException, ExecutionException
get 在接口中 Future<Res>TimeoutExceptionInterruptedExceptionExecutionExceptionpublic com.alicloud.openservices.tablestore.core.AbstractWatchableCallback<Request,Response> watchBy(TableStoreCallback<Request,Response> downstream)
watchBy 在接口中 WatchableCallback<Request,Response>Copyright © 2025. All Rights Reserved.