TempFiles

object TempFiles : TempFileFactoryBase, TempFileFactory

Default Expiring Temporary Files Factory

Singleton TempFileFactory instance.

This TempFileFactory instance

See also

Functions

Link copied to clipboard
open override fun cleanup()

Manually triggers a temp file cleanup.

Link copied to clipboard
open override fun create(): File

Creates a temp file with the configured defaultLifetime.

open override fun create(lifeTime: Long): File

Creates a temp file with the given lifeTime.

Link copied to clipboard
open override fun shutDown()

Stops the thread backing this TempFileFactory, meaning no more automatic temp file cleanup will occur.

Properties

Link copied to clipboard
open override val cleanupInterval: Long

Interval in milliseconds at which the temp file cleanup process will be automatically executed.

Link copied to clipboard
open override val defaultLifetime: Long

Default temporary file lifetime as a duration in milliseconds.

Link copied to clipboard
open override val rootDir: File

Directory in which all temp files will be created.