Interface StorageRegistry

All Superinterfaces:
Registry<Nameable,Storage>

public interface StorageRegistry extends Registry<Nameable,Storage>
A class which represents a storage registry.
  • Field Details

    • YAML

      static final Nameable YAML
      The default storage method which should be always available.
  • Method Details

    • activeStorage

      @NotNull @NotNull Storage activeStorage()
      Get the active storage, which is defined in the GeneralConfig.storageType() or a fallback Storage.
      Returns:
      storage
    • migrate

      CompletableFuture<Void> migrate(Nameable source, Nameable target)
      Migrate a source storage into a target storage
      Parameters:
      source - source
      target - target
      Returns:
      Returns a future which completes once all underlying processes complete
    • reload

      default void reload()