public class BatchDataCollector<E> extends Object
| 构造器和说明 |
|---|
BatchDataCollector(int maxStoreSize,
long maxStoreNanos,
Consumer<List<E>> consumer,
boolean withShutdownHook) |
BatchDataCollector(int maxStoreSize,
long maxStoreTime,
TimeUnit timeUnit,
Consumer<List<E>> consumer) |
BatchDataCollector(int maxStoreSize,
long maxStoreTime,
TimeUnit timeUnit,
Consumer<List<E>> consumer,
boolean withShutdownHook) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
collect(E datum) |
void |
collect(E datum,
Consumer<List<E>> consumer) |
void |
collect(Iterable<E> data) |
void |
collect(Iterable<E> data,
Consumer<List<E>> consumer) |
void |
flush() |
void |
flush(Consumer<List<E>> consumer) |
Consumer<List<E>> |
getConsumer() |
long |
getMaxStoreNanos() |
int |
getMaxStoreSize() |
boolean |
startScheduler() |
boolean |
stopScheduler() |
void |
tryFlush() |
boolean |
tryFlush(Consumer<List<E>> consumer) |
public BatchDataCollector(int maxStoreSize,
long maxStoreTime,
TimeUnit timeUnit,
Consumer<List<E>> consumer)
public BatchDataCollector(int maxStoreSize,
long maxStoreTime,
TimeUnit timeUnit,
Consumer<List<E>> consumer,
boolean withShutdownHook)
public int getMaxStoreSize()
public long getMaxStoreNanos()
public boolean startScheduler()
public boolean stopScheduler()
public void collect(E datum)
public void tryFlush()
public void flush()
Copyright © 2025 fossc. All rights reserved.