Interface OortMap.EntryListener<K,​V>

  • Type Parameters:
    K - the key type
    V - the value type
    All Superinterfaces:
    java.util.EventListener
    Enclosing class:
    OortMap<K,​V>

    public static interface OortMap.EntryListener<K,​V>
    extends java.util.EventListener
    Listener for entry events that update the entity map, either locally or remotely.
    • Method Detail

      • onPut

        default void onPut​(OortObject.Info<java.util.concurrent.ConcurrentMap<K,​V>> info,
                           OortMap.Entry<K,​V> entry)
        Callback method invoked after an entry is put into the entity map.
        Parameters:
        info - the OortObject.Info that was changed by the put
        entry - the entry values
      • onRemoved

        default void onRemoved​(OortObject.Info<java.util.concurrent.ConcurrentMap<K,​V>> info,
                               OortMap.Entry<K,​V> entry)
        Callback method invoked after an entry is removed from the entity map.
        Parameters:
        info - the OortObject.Info that was changed by the remove
        entry - the entry values