Class UpdateAgent<K,V>

java.lang.Object
me.hsgamer.topper.agent.update.UpdateAgent<K,V>
All Implemented Interfaces:
me.hsgamer.topper.agent.core.DataEntryAgent<K,V>

public class UpdateAgent<K,V> extends Object implements me.hsgamer.topper.agent.core.DataEntryAgent<K,V>
  • Constructor Details

    • UpdateAgent

      public UpdateAgent(me.hsgamer.topper.data.core.DataHolder<K,V> holder, Function<K,me.hsgamer.topper.value.core.ValueWrapper<V>> updateFunction)
  • Method Details

    • setFilter

      public void setFilter(Function<K,UpdateAgent.FilterResult> filter)
    • setErrorHandler

      public void setErrorHandler(BiFunction<K,me.hsgamer.topper.value.core.ValueWrapper<V>,me.hsgamer.topper.value.core.ValueWrapper<V>> errorHandler)
    • setErrorHandler

      public void setErrorHandler(BiConsumer<K,me.hsgamer.topper.value.core.ValueWrapper<V>> errorHandler)
    • setMaxSkips

      public void setMaxSkips(int maxSkips)
    • getUpdateRunnable

      public Runnable getUpdateRunnable(int maxEntryPerCall)
    • getSetRunnable

      public Runnable getSetRunnable()
    • onCreate

      public void onCreate(me.hsgamer.topper.data.core.DataEntry<K,V> entry)
      Specified by:
      onCreate in interface me.hsgamer.topper.agent.core.DataEntryAgent<K,V>
    • onRemove

      public void onRemove(me.hsgamer.topper.data.core.DataEntry<K,V> entry)
      Specified by:
      onRemove in interface me.hsgamer.topper.agent.core.DataEntryAgent<K,V>