T
- The type of response from server-side@InterfaceAudience.Private @InterfaceStability.Evolving public class AsyncProcessTask<T> extends Object
AsyncProcess
.
The attributes will be validated by AsyncProcess.
It's intended for advanced client applications.Modifier and Type | Class and Description |
---|---|
static class |
AsyncProcessTask.Builder<T> |
(package private) static class |
AsyncProcessTask.ListRowAccess<T> |
static class |
AsyncProcessTask.SubmittedRows
The number of processed rows.
|
Modifier and Type | Field and Description |
---|---|
private CancellableRegionServerCallable |
callable |
private Batch.Callback<T> |
callback |
private boolean |
needResults |
private int |
operationTimeout |
private ExecutorService |
pool |
private Object[] |
results |
private RowAccess<? extends Row> |
rows |
private int |
rpcTimeout |
private AsyncProcessTask.SubmittedRows |
submittedRows |
private TableName |
tableName |
Constructor and Description |
---|
AsyncProcessTask(AsyncProcessTask<T> task) |
AsyncProcessTask(ExecutorService pool,
TableName tableName,
RowAccess<? extends Row> rows,
AsyncProcessTask.SubmittedRows size,
Batch.Callback<T> callback,
CancellableRegionServerCallable callable,
boolean needResults,
int rpcTimeout,
int operationTimeout,
Object[] results) |
Modifier and Type | Method and Description |
---|---|
(package private) CancellableRegionServerCallable |
getCallable() |
Batch.Callback<T> |
getCallback() |
boolean |
getNeedResults() |
int |
getOperationTimeout() |
ExecutorService |
getPool() |
(package private) Object[] |
getResults() |
RowAccess<? extends Row> |
getRowAccess() |
int |
getRpcTimeout() |
AsyncProcessTask.SubmittedRows |
getSubmittedRows() |
TableName |
getTableName() |
static AsyncProcessTask.Builder |
newBuilder() |
static <T> AsyncProcessTask.Builder<T> |
newBuilder(Batch.Callback<T> callback) |
private final ExecutorService pool
private final AsyncProcessTask.SubmittedRows submittedRows
private final Batch.Callback<T> callback
private final CancellableRegionServerCallable callable
private final boolean needResults
private final int rpcTimeout
private final int operationTimeout
AsyncProcessTask(AsyncProcessTask<T> task)
AsyncProcessTask(ExecutorService pool, TableName tableName, RowAccess<? extends Row> rows, AsyncProcessTask.SubmittedRows size, Batch.Callback<T> callback, CancellableRegionServerCallable callable, boolean needResults, int rpcTimeout, int operationTimeout, Object[] results)
public static <T> AsyncProcessTask.Builder<T> newBuilder(Batch.Callback<T> callback)
public static AsyncProcessTask.Builder newBuilder()
public int getOperationTimeout()
public ExecutorService getPool()
public TableName getTableName()
public RowAccess<? extends Row> getRowAccess()
public AsyncProcessTask.SubmittedRows getSubmittedRows()
public Batch.Callback<T> getCallback()
CancellableRegionServerCallable getCallable()
Object[] getResults()
public boolean getNeedResults()
public int getRpcTimeout()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.