Package me.hsgamer.topper.agent.snapshot
Class SnapshotAgent<K,V>
- java.lang.Object
-
- me.hsgamer.topper.agent.snapshot.SnapshotAgent<K,V>
-
-
Constructor Summary
Constructors Constructor Description SnapshotAgent()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddFilter(Predicate<Map.Entry<K,V>> filter)static <K,V>
SnapshotAgent<K,V>create(DataHolder<K,V> holder)protected abstract Stream<Map.Entry<K,V>>getDataStream()List<Map.Entry<K,V>>getSnapshot()Optional<Map.Entry<K,V>>getSnapshotByIndex(int index)intgetSnapshotIndex(K key)List<Map.Entry<K,V>>getUrgentSnapshot()voidrun()voidsetComparator(Comparator<V> comparator)voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface me.hsgamer.topper.agent.core.Agent
beforeStop, start
-
-
-
-
Method Detail
-
create
public static <K,V> SnapshotAgent<K,V> create(DataHolder<K,V> holder)
-
getSnapshotIndex
public int getSnapshotIndex(K key)
-
setComparator
public void setComparator(Comparator<V> comparator)
-
-