PriorityDataSourceFactory


@UnstableApi
public final class PriorityDataSourceFactory implements DataSource.Factory


Summary

Public constructors

PriorityDataSourceFactory(
    DataSource.Factory upstreamFactory,
    PriorityTaskManager priorityTaskManager,
    @C.Priority int priority
)

Public methods

PriorityDataSource

Creates a DataSource instance.

Public constructors

PriorityDataSourceFactory

public PriorityDataSourceFactory(
    DataSource.Factory upstreamFactory,
    PriorityTaskManager priorityTaskManager,
    @C.Priority int priority
)
Parameters
DataSource.Factory upstreamFactory

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 int priority

The C.Priority of the PriorityDataSource task.

Public methods

createDataSource

public PriorityDataSource createDataSource()

Creates a DataSource instance.