public abstract class BatchInsertTask extends Object implements Callable<BatchInsertResult>
| 限定符和类型 | 字段和说明 |
|---|---|
protected ConnectionFactory |
connFactory |
protected Random |
random |
protected String |
start |
| 构造器和说明 |
|---|
BatchInsertTask(String startTime,
long seed) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract int |
batchInsertTable() |
BatchInsertResult |
call() |
protected abstract int |
getExpectInsertRows() |
void |
setConnFactory(ConnectionFactory connFactory) |
protected Random random
protected String start
protected ConnectionFactory connFactory
public BatchInsertTask(String startTime, long seed)
public void setConnFactory(ConnectionFactory connFactory)
public BatchInsertResult call() throws SQLException
call 在接口中 Callable<BatchInsertResult>SQLExceptionprotected abstract int getExpectInsertRows()
protected abstract int batchInsertTable()
throws SQLException
SQLExceptionCopyright © 2019. All rights reserved.