KontainerTracker

interface KontainerTracker

Keeps track of instantiated kontainers and services

TODO: also keep track of services... to find leaks, where services are not disposed

Types

Companion
Link copied to clipboard
object Companion

Functions

getAlive
Link copied to clipboard
abstract fun getAlive(): Map<Kontainer, Instant>
Gets tracked Kontainer instances and the Instant at which they were created
abstract fun getAlive(olderThanSec: Int): Map<Kontainer, Instant>
Gets tracked Kontainer instances and the Instant at which they were created that are older than olderThanSec
getNumAlive
Link copied to clipboard
abstract fun getNumAlive(): Int
Get the number of kontainers that where not yet garbage collected
abstract fun getNumAlive(olderThanSec: Int): Int
Get the number of kontainers that where not yet garbage collected and that are older than olderThanSec
isLive
Link copied to clipboard
abstract fun isLive(): Boolean
Returns 'true' when the tracker is tracking instances
track
Link copied to clipboard
abstract fun track(kontainer: Kontainer)
Tracks the given kontainer