public class TimeWindowMap<V> extends ConcurrentSortedBoundedMap<java.time.Instant,List<V>>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 字段和说明 |
|---|---|
private int |
batchSize |
private static long |
serialVersionUID |
private TimeSlotMap<List<V>> |
timeSlotMap |
private TimeWindowListener<V> |
timeWindowListener |
| 构造器和说明 |
|---|
TimeWindowMap(int span,
TimeSlot timeSlot,
int batchSize,
TimeWindowListener<V> timeWindowListener) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
void |
flush() |
int |
getMaxSize() |
static void |
main(String[] args) |
List<V> |
offer(java.time.Instant time,
V payload) |
List<V> |
offer(long timeInMs,
V payload) |
void |
onEviction(java.time.Instant ins,
List<V> values) |
int |
size() |
containsKey, containsValue, entrySet, get, getDelegate, keySet, merge, put, putIfAbsent, remove, setAsc, toString, valuescompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, isEmpty, putAll, remove, replace, replace, replaceAllprivate static final long serialVersionUID
private final TimeSlotMap<List<V>> timeSlotMap
private final int batchSize
private final TimeWindowListener<V> timeWindowListener
public TimeWindowMap(int span,
TimeSlot timeSlot,
int batchSize,
TimeWindowListener<V> timeWindowListener)
public void clear()
public int size()
public int getMaxSize()
getMaxSize 在接口中 BoundedMap<java.time.Instant,List<V>>getMaxSize 在类中 ConcurrentSortedBoundedMap<java.time.Instant,List<V>>public void flush()
Copyright © 2022. All rights reserved.