public class ReaderCallback<Req,Res> extends Object implements TableStoreCallback<Req,Res>
| 限定符和类型 | 字段和说明 |
|---|---|
static AtomicLong |
counter |
| 构造器和说明 |
|---|
ReaderCallback(AsyncClientInterface ots,
AtomicInteger count,
Semaphore semaphore,
TableStoreCallback<PrimaryKeyWithTable,RowReadResult> callback,
Executor executor,
Semaphore bucketSemaphore,
ReaderStatistics statistics,
Map<String,List<ReaderGroup>> groupMap) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
failedOnException(Req request,
TableStoreException ex) |
void |
failedOnUnknownException(Req req,
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.
|
public static AtomicLong counter
public ReaderCallback(AsyncClientInterface ots, AtomicInteger count, Semaphore semaphore, TableStoreCallback<PrimaryKeyWithTable,RowReadResult> callback, Executor executor, Semaphore bucketSemaphore, ReaderStatistics statistics, Map<String,List<ReaderGroup>> groupMap)
public void onCompleted(Req req, Res res)
TableStoreCallbackonCompleted 在接口中 TableStoreCallback<Req,Res>req - The user's requestres - The result of the user's requestpublic void onFailed(Req req, Exception ex)
TableStoreCallbackonFailed 在接口中 TableStoreCallback<Req,Res>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 void failedOnException(Req request, TableStoreException ex)
Copyright © 2025. All Rights Reserved.