public abstract class BatchCallableRunnable<T,E> extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
BatchCallableRunnable.InvokeFuture<E> |
class |
BatchCallableRunnable.TaskEvent |
| 限定符 | 构造器和说明 |
|---|---|
protected |
BatchCallableRunnable(int sleep,
TimeUnit timeUnit,
int batchSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract boolean |
batchProcess(List<BatchCallableRunnable.TaskEvent> tasks) |
BatchCallableRunnable.InvokeFuture |
commit(BatchCallableRunnable.TaskEvent task) |
void |
init() |
protected final int sleep
protected final TimeUnit timeUnit
protected final int batchSize
protected BatchCallableRunnable(int sleep,
TimeUnit timeUnit,
int batchSize)
public BatchCallableRunnable.InvokeFuture commit(BatchCallableRunnable.TaskEvent task)
protected abstract boolean batchProcess(List<BatchCallableRunnable.TaskEvent> tasks)
@PostConstruct public void init()
Copyright © 2023 The Ant Financial. All rights reserved.