FailOnCloseDataSink.Factory


class FailOnCloseDataSink.Factory : DataSink.Factory


Factory to create a FailOnCloseDataSink.

Summary

Public constructors

Factory(cache: Cache!, failOnClose: AtomicBoolean!)

Creates an instance.

Public functions

DataSink!

Creates a DataSink instance.

Public constructors

Factory

Factory(cache: Cache!, failOnClose: AtomicBoolean!)

Creates an instance.

Parameters
cache: Cache!

The cache to write to when not in fail-on-close mode.

failOnClose: AtomicBoolean!

An AtomicBoolean whose value is read in each call to open to determine whether to enable fail-on-close for the read that's being started.

Public functions

createDataSink

fun createDataSink(): DataSink!

Creates a DataSink instance.