Package me.hsgamer.topper.agent.storage
Class StorageAgent<K,V>
java.lang.Object
me.hsgamer.topper.agent.storage.StorageAgent<K,V>
- All Implemented Interfaces:
Runnable
,Agent
,DataEntryAgent<K,
V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getLoadAgent
(DataHolder<K, V> holder) void
void
void
void
run()
protected void
scheduleValue
(K key, V value) void
setLoadOnCreate
(boolean loadOnCreate) void
setMaxEntryPerCall
(int taskSaveEntryPerTick) void
setScheduleOnEntryRemove
(boolean scheduleOnEntryRemove) 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.DataEntryAgent
onUnregister
-
Constructor Details
-
StorageAgent
-
-
Method Details
-
scheduleValue
-
start
public void start() -
stop
public void stop() -
beforeStop
public void beforeStop()- Specified by:
beforeStop
in interfaceAgent
-
onCreate
- Specified by:
onCreate
in interfaceDataEntryAgent<K,
V>
-
onUpdate
- Specified by:
onUpdate
in interfaceDataEntryAgent<K,
V>
-
onRemove
- Specified by:
onRemove
in interfaceDataEntryAgent<K,
V>
-
run
public void run() -
getStorage
-
setMaxEntryPerCall
public void setMaxEntryPerCall(int taskSaveEntryPerTick) -
setLoadOnCreate
public void setLoadOnCreate(boolean loadOnCreate) -
setScheduleOnEntryRemove
public void setScheduleOnEntryRemove(boolean scheduleOnEntryRemove) -
getLoadAgent
-