Package me.hsgamer.topper.agent.storage
Class StorageAgent<K,V>
- java.lang.Object
-
- me.hsgamer.topper.agent.storage.StorageAgent<K,V>
-
-
Constructor Summary
Constructors Constructor Description StorageAgent(Logger logger, DataHolder<K,V> holder, DataStorage<K,V> storage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeStop()
DataStorage<K,V>
getStorage()
void
onUpdate(DataEntry<K,V> entry)
void
run()
void
setMaxEntryPerCall(int taskSaveEntryPerTick)
void
start()
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
onCreate, onRemove, onUnregister
-
-
-
-
Constructor Detail
-
StorageAgent
public StorageAgent(Logger logger, DataHolder<K,V> holder, DataStorage<K,V> storage)
-
-
Method Detail
-
beforeStop
public void beforeStop()
- Specified by:
beforeStop
in interfaceAgent<K,V>
-
getStorage
public DataStorage<K,V> getStorage()
-
setMaxEntryPerCall
public void setMaxEntryPerCall(int taskSaveEntryPerTick)
-
-