Open a channel for the given file For windows NTFS and some old LINUX file system, set preallocate to true and initFileSize with one value (for example 512 * 1025 *1024 ) can improve the kafka produce performance.
Open a channel for the given file For windows NTFS and some old LINUX file system, set preallocate to true and initFileSize with one value (for example 512 * 1025 *1024 ) can improve the kafka produce performance.
File path
mutable
File already exists or not
The size used for pre allocate file, for example 512 * 1025 *1024
Pre allocate file or not, gotten from configuration.