Interface StorageService

All Superinterfaces:
BesuService

public interface StorageService extends BesuService
This service allows plugins to register as an available storage engine.
  • Method Details

    • registerKeyValueStorage

      void registerKeyValueStorage(KeyValueStorageFactory factory)
      Registers a factory as available for creating key-value storage instances.
      Parameters:
      factory - creates instances providing key-value storage.
    • getAllSegmentIdentifiers

      List<SegmentIdentifier> getAllSegmentIdentifiers()
      Retrieves the identifiers for the isolation segments that could be requested during operation.
      Returns:
      full set of possible segments required from the storage service.
    • getByName

      Retrieves a registered factory corresponding to the supplied factory name
      Parameters:
      name - The name of the factory to retrieve
      Returns:
      an optional containing the instance of the registered factory, or empty if the factory hasn't been registered.