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