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(DataHolder<K,V> holder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(Predicate<Map.Entry<K,V>> filter)Optional<DataEntry<K,V>>getEntryByIndex(int index)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
-
-
-
-
Constructor Detail
-
SnapshotAgent
public SnapshotAgent(DataHolder<K,V> holder)
-
-
Method Detail
-
getSnapshotIndex
public int getSnapshotIndex(K key)
-
setComparator
public void setComparator(Comparator<V> comparator)
-
-