Skip to content

AbstractSentierValue

abstract class AbstractSentierValue<T>(val id: String) : SentierValue<T> 

Helper to implement a configurable SentierValue.

Example

object Message : AbstractSentierValue<String>("your.project.Message")

Inheritors

Constructors

AbstractSentierValue

constructor(id: String)

Properties

enabled

@Volatile
open override var enabled: Boolean

Whether this value should be collected.

Prefer setting this value as early as possible in the lifetime of the program, and avoid changing it later.

id

open override val id: String

Unique identifier of this value.

This identifier should not change over time. It is used to identify the value when it is sent to log aggregators.

Functions

toString

open override fun toString(): String