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 void
addFilter(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)
int
getSnapshotIndex(K key)
List<Map.Entry<K,V>>
getUrgentSnapshot()
void
run()
void
setComparator(Comparator<V> comparator)
void
stop()
-
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, onCreate, onRemove, onUnregister, onUpdate, 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)
-
-