MmapRotationWriter

class MmapRotationWriter(directory: Path, maxFileSize: Long = 1024L * 1024L * 1024L, rotationPolicy: String = "SIZE", filePrefix: String = "app")(source)

Constructors

Link copied to clipboard
constructor(directory: Path, maxFileSize: Long = 1024L * 1024L * 1024L, rotationPolicy: String = "SIZE", filePrefix: String = "app")

Functions

Link copied to clipboard
fun close()
Link copied to clipboard
fun force()
Link copied to clipboard
Link copied to clipboard
fun size(): Long
Link copied to clipboard
fun write(data: String): Long
Link copied to clipboard
fun writeBatch(dataList: List<String>): Long