All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mattshoe.shoebox.kernl.runtime.session.KernlResourceManager.kt Maven / Gradle / Ivy

Go to download

Kernl: A Kotlin Symbol Processing (KSP) library for automatic repository generation.

The newest version!
package org.mattshoe.shoebox.kernl.runtime.session

import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import java.util.*
import kotlin.time.Duration
import kotlin.time.Duration.Companion.seconds

interface KernlResourceManager {
    fun startSession(
        dispatcher: CoroutineDispatcher = Dispatchers.Default,
        resourceMonitorInterval: Duration = 1.seconds
    )
    fun stopSession()
    fun registerKernl(kernl: Any): KernlRegistration
    fun resetTimeToLive(uuid: UUID, duration: Duration = 1.seconds)
    fun stopTimeToLive(uuid: UUID)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy