Package me.hsgamer.topper.agent.update
Class UpdateAgent<K,V>
java.lang.Object
me.hsgamer.topper.agent.update.UpdateAgent<K,V>
- All Implemented Interfaces:
DataEntryAgent<K,
V>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionUpdateAgent
(DataHolder<K, V> holder, Function<K, ValueWrapper<V>> updateFunction) -
Method Summary
Modifier and TypeMethodDescriptiongetUpdateRunnable
(int maxEntryPerCall) void
void
void
setErrorHandler
(BiConsumer<K, ValueWrapper<V>> errorHandler) void
setFilter
(Function<K, UpdateAgent.FilterResult> filter) void
setMaxSkips
(int maxSkips) 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 Details
-
UpdateAgent
-
-
Method Details
-
setFilter
-
setErrorHandler
-
setMaxSkips
public void setMaxSkips(int maxSkips) -
getUpdateRunnable
-
getSetRunnable
-
onCreate
- Specified by:
onCreate
in interfaceDataEntryAgent<K,
V>
-
onRemove
- Specified by:
onRemove
in interfaceDataEntryAgent<K,
V>
-