Interface MultiEntryStore<T>

Type Parameters:
T - Type of the stored objects
All Known Subinterfaces:
BlobStore, ConfigurationEntryStore<V>, DataStore<T>

public interface MultiEntryStore<T>
Base class for BlobStore and DataStore.
Since:
1.23
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Remove all items from the store.
    get(String id)
    Returns the item with the given id from the store.
    default Optional<T>
    Returns the item with the given id from the store.
    void
    Remove the item with the given id.
  • Method Details

    • clear

      void clear()
      Remove all items from the store.
    • remove

      void remove(String id)
      Remove the item with the given id.
      Parameters:
      id - id of the item to remove
    • get

      T get(String id)
      Returns the item with the given id from the store.
      Parameters:
      id - id of the item to return
      Returns:
      item with the given id
    • getOptional

      default Optional<T> getOptional(String id)
      Returns the item with the given id from the store.
      Parameters:
      id - id of the item to return
      Returns:
      item with the given id