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 Summary
Modifier and TypeMethodDescriptionvoidAdds a source and resorts them.voidClears all sources.voidremoveSource(Storage source) Removes a source and resorts them.voidSorts storages that implementPriorityProvider.Methods inherited from interface ExtractableStorage
extractMethods inherited from interface InsertableStorage
insertMethods inherited from interface StorageView
getAll, getStoredMethods inherited from interface TrackedStorage
findTrackedResourceByActorType
-
Method Details
-
sortSources
void sortSources()Sorts storages that implementPriorityProvider. -
addSource
-
removeSource
Removes a source and resorts them.- Parameters:
source- the source
-
getSources
-
clearSources
void clearSources()Clears all sources.
-