Interface CompositeStorage

All Superinterfaces:
ExtractableStorage, InsertableStorage, Storage, StorageView, TrackedStorage
All Known Implementing Classes:
CompositeStorageImpl

@API(status=STABLE, since="2.0.0-milestone.1.0") public interface CompositeStorage extends Storage, TrackedStorage
This represents a single storage that can be backed by multiple storages.
  • Method Details

    • sortSources

      void sortSources()
      Sorts storages that implement PriorityProvider.
    • addSource

      void addSource(Storage source)
      Adds a source and resorts them.
      Parameters:
      source - the source
    • removeSource

      void removeSource(Storage source)
      Removes a source and resorts them.
      Parameters:
      source - the source
    • getSources

      List<Storage> getSources()
      Returns:
      an unmodifiable source list
    • clearSources

      void clearSources()
      Clears all sources.