PriorityDataSource.Factory


class PriorityDataSource.Factory : DataSource.Factory


DataSource.Factory for PriorityDataSource instances.

Summary

Public constructors

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

Creates an instance.

Public functions

PriorityDataSource!

Creates a DataSource instance.

Public constructors

Factory

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

Creates an instance.

Parameters
upstreamFactory: DataSource.Factory!

A DataSource.Factory that provides upstream DataSources for PriorityDataSource instances created by the factory.

priorityTaskManager: PriorityTaskManager!

The PriorityTaskManager to which tasks using instances created by this factory will be registered.

@C.Priority priority: Int

The C.Priority of the tasks using PriorityDataSource instances created by this factory.

Public functions

createDataSource

fun createDataSource(): PriorityDataSource!

Creates a DataSource instance.