Creates a new file writer transport.
The size of the chunks the file is divided into, in bytes.
Closes the transport, i.e. the underlying file and the writer thread.
The maximum number of write() calls buffered, or zero for no limit.
Flushes any pending data to be written.
When the writer thread encounteres an I/O error, it goes pauses for a short time before trying to reopen the output file. This controls the sleep duration.
Maximum number of bytes buffered before writing and flushing the file to disk.
Maximum interval between flushing the file to disk.
A file writer transport can never be read from.
Enqueues the passed slice of data for writing and immediately returns. write() only blocks if the event buffer has been exhausted.
The maximum number of write() calls buffered, or zero for no limit.
When the writer thread encounteres an I/O error, it goes pauses for a short time before trying to reopen the output file. This controls the sleep duration.
Maximum number of bytes buffered before writing and flushing the file to disk.
Maximum interval between flushing the file to disk.
A transport used to write log files. It can never be read from, calling read() throws.
Contrary to the C++ design, explicitly opening the transport/file before using is necessary to allow manually closing the file without relying on the object lifetime.