ServerStatusDataSourceImpl

internal class ServerStatusDataSourceImpl(val clock: Clock) : ServerStatusDataSource

A data source for managing the current server status.

Constructors

Link copied to clipboard
constructor(clock: Clock)

Properties

Link copied to clipboard
private val clock: Clock

An instance of Clock used for timestamping the server status changes.

Link copied to clipboard
private val mutex: Mutex
Link copied to clipboard
private var startTimestamp: Instant?

The timestamp of the server last start.

Functions

Link copied to clipboard
open suspend override fun get(): ServerStatusDataModel
Link copied to clipboard
open suspend override fun setStarted()
Link copied to clipboard
open suspend override fun setStopped()