spark
spark copied to clipboard
Refactor: Split synchronous and asynchronous interfaces
Is your feature request related to a problem? Please describe. Currently the asynchronous and synchronous methods is located in the same interface. This is not a good pattern since it requires the implementers to implement both the synchronous and asynchronous methods even though they might want to just use either async or sync.
Describe the solution you'd like Split the interfaces into an asynchronous and synchronous version.
Following interfaces will be affected (not necessarily complete):
- [x] ITransactionService
- [x] IInteractionHandler
- [ ] IFhirStore
- [x] IIndexStore
- [ ] ISnapshotStore
- [ ] IHistoryStore
- [ ] IIndexService
- [ ] IFhirIndex
- [ ] IPagingService
- [ ] IResourceStorageService
- [ ] ISearchService
- [ ] ISnapshotPagination
- [ ] IHistoryService
- [ ] IServiceListener
Additional context This is will be a breaking change and can at earliest be part of release 2.0