public class MultiBatchDataCollector<K,E> extends Object
| 构造器和说明 |
|---|
MultiBatchDataCollector(int maxStoreSize,
long maxStoreNanos) |
MultiBatchDataCollector(int maxStoreSize,
long maxStoreTime,
TimeUnit timeUnit) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
public MultiBatchDataCollector(int maxStoreSize,
long maxStoreTime,
TimeUnit timeUnit)
public MultiBatchDataCollector(int maxStoreSize,
long maxStoreNanos)
public long getMaxStoreNanos()
public int getMaxStoreSize()
public boolean startScheduler()
public boolean register(K key, BatchDataCollector<E> collector)
public void flush(K key)
Copyright © 2024 fossc. All rights reserved.