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

Link copied to clipboard
object Companion

Functions

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

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

Link copied to clipboard
abstract fun isLive(): Boolean

Returns 'true' when the tracker is tracking instances

Link copied to clipboard
abstract fun track(kontainer: Kontainer)

Tracks the given kontainer