Package me.hsgamer.topper.agent.update
Class UpdateAgent<K,V>
- java.lang.Object
-
- me.hsgamer.topper.agent.update.UpdateAgent<K,V>
-
- All Implemented Interfaces:
Runnable,DataEntryAgent<K,V>
public class UpdateAgent<K,V> extends Object implements DataEntryAgent<K,V>, Runnable
-
-
Constructor Summary
Constructors Constructor Description UpdateAgent(Logger logger, DataHolder<K,V> holder, Function<K,CompletableFuture<Optional<V>>> updateFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonCreate(DataEntry<K,V> entry)voidonRemove(DataEntry<K,V> entry)voidrun()voidsetMaxEntryPerCall(int maxEntryPerCall)-
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.DataEntryAgent
onUnregister, onUpdate
-
-
-
-
Constructor Detail
-
UpdateAgent
public UpdateAgent(Logger logger, DataHolder<K,V> holder, Function<K,CompletableFuture<Optional<V>>> updateFunction)
-
-