PriorityDataSourceFactory


@UnstableApi
class PriorityDataSourceFactory : DataSource.Factory


Summary

Public constructors

PriorityDataSourceFactory(
    upstreamFactory: DataSource.Factory!,
    priorityTaskManager: PriorityTaskManager!,
    @C.Priority priority: Int
)

Public functions

PriorityDataSource!

Creates a DataSource instance.

Public constructors

PriorityDataSourceFactory

PriorityDataSourceFactory(
    upstreamFactory: DataSource.Factory!,
    priorityTaskManager: PriorityTaskManager!,
    @C.Priority priority: Int
)
Parameters
upstreamFactory: DataSource.Factory!

A DataSource.Factory to be used to create an upstream for PriorityDataSource.

priorityTaskManager: PriorityTaskManager!

The priority manager to which PriorityDataSource task is registered.

@C.Priority priority: Int

The C.Priority of the PriorityDataSource task.

Public functions

createDataSource

fun createDataSource(): PriorityDataSource!

Creates a DataSource instance.