public final class

FailOnCloseDataSink.Factory

extends java.lang.Object

implements DataSink.Factory

 java.lang.Object

↳androidx.media3.test.utils.FailOnCloseDataSink.Factory

Overview

Factory to create a FailOnCloseDataSink.

Summary

Constructors
publicFactory(Cache cache, java.util.concurrent.atomic.AtomicBoolean failOnClose)

Creates an instance.

Methods
public DataSinkcreateDataSink()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Factory(Cache cache, java.util.concurrent.atomic.AtomicBoolean failOnClose)

Creates an instance.

Parameters:

cache: The cache to write to when not in fail-on-close mode.
failOnClose: An java.util.concurrent.atomic.AtomicBoolean whose value is read in each call to DataSink.open(DataSpec) to determine whether to enable fail-on-close for the read that's being started.

Methods

public DataSink createDataSink()