Interface ReadWriteStore<K,V>

    • Method Detail

      • putAll

        @Nonnull
        java.util.Map<K,V> putAll​(@Nonnull
                                  java.util.Map<K,V> values)
        Parameters:
        values - Put all key value pairs form this map into the storage.
        Returns:
        Immutable map of replaced values. Values not already present should not have an entry in the result map (no key -> null mapping).
      • removeAll

        @Nonnull
        java.util.Map<K,V> removeAll​(java.util.Collection<K> keys)
        Remove the values for the given keys.
        Parameters:
        keys - Map of removed key value pairs.
        Returns:
        Immutable map of removed key value pairs. Values not removed should not have an entry in the result map (no key -> null mapping).
      • put

        @Nullable
        default V put​(@Nonnull
                      K key,
                      @Nonnull
                      V value)
        Parameters:
        key - The key to put message at.
        value - The value to put.
        Returns:
        Replaced value if any, otherwise null.
      • remove

        @Nullable
        default V remove​(@Nonnull
                         K key)
        Remove the key value pair from the store.
        Parameters:
        key - The key to remove.
        Returns:
        The value removed if any, otherwise null.