public class TimeseriesFlushCallback<Req,Res> extends Object implements TableStoreCallback<Req,Res>
| 限定符和类型 | 字段和说明 |
|---|---|
static AtomicLong |
counter |
| 构造器和说明 |
|---|
TimeseriesFlushCallback(AsyncTimeseriesClientInterface ots,
AtomicInteger count,
Semaphore semaphore,
TableStoreCallback<TimeseriesTableRow,TimeseriesRowResult> callback,
Executor executor,
TimeseriesWriterHandleStatistics timeseriesWriterHandleStatistics,
TimeseriesBucketConfig timeseriesBucketConfig,
Semaphore bucketSemaphore,
List<TimeseriesGroup> groupList) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
failedOnException(Req request,
Exception ex) |
void |
onCompleted(PutTimeseriesDataRequest originRequest,
PutTimeseriesDataResponse result) |
void |
onCompleted(Req request,
Res response)
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.
|
public static AtomicLong counter
public TimeseriesFlushCallback(AsyncTimeseriesClientInterface ots, AtomicInteger count, Semaphore semaphore, TableStoreCallback<TimeseriesTableRow,TimeseriesRowResult> callback, Executor executor, TimeseriesWriterHandleStatistics timeseriesWriterHandleStatistics, TimeseriesBucketConfig timeseriesBucketConfig, Semaphore bucketSemaphore, List<TimeseriesGroup> groupList)
public void onCompleted(PutTimeseriesDataRequest originRequest, PutTimeseriesDataResponse result)
public void onCompleted(Req request, Res response)
TableStoreCallbackonCompleted 在接口中 TableStoreCallback<Req,Res>request - The user's requestresponse - 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.Copyright © 2025. All Rights Reserved.