OffloadingServiceRepository

The repository interface for accessing the OffloadingService data.

Inheritors

Functions

Link copied to clipboard
abstract fun changeStateOffloadingService(serviceId: Int, state: Pipeline.State)

Changes the state of an OffloadingService.

Link copied to clipboard
abstract suspend fun deleteOffloadingService(serviceId: Int)

Delete an OffloadingService from the offloadingservices table based on its ID.

Link copied to clipboard

Get the stream of all OffloadingServices in the database.

Link copied to clipboard
abstract fun getOffloadingService(serviceId: Int): Flow<OffloadingService>

Get the stream of OffloadingServices by serviceId from the database.

Link copied to clipboard
abstract suspend fun insertOffloadingService(offloadingService: OffloadingService)

Insert an OffloadingService into the database.

Link copied to clipboard
abstract suspend fun updateOffloadingService(offloadingService: OffloadingService)

Update the given OffloadingService in the database.