Interface StorageService
- All Superinterfaces:
BesuService
This service allows plugins to register as an available storage engine.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the identifiers for the isolation segments that could be requested during operation.Retrieves a registered factory corresponding to the supplied factory namevoidRegisters a factory as available for creating key-value storage instances.
-
Method Details
-
registerKeyValueStorage
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.
-