MeterHandlerPool

class MeterHandlerPool(poolId: String?, observer: ReadingObserver? = null)

Helper structure for handling the meter handlers in a session/free meters. The default observer will be applied to all added meters.

Constructors

Link copied to clipboard
constructor(poolId: String?, observer: ReadingObserver? = null)

Functions

Link copied to clipboard
fun add(handlers: Collection<MeterHandler>)
Link copied to clipboard
open fun close()
Link copied to clipboard
fun count(): Int
Link copied to clipboard
fun dummify()

Replaces the meter handlers with dummy facades and removes the old ones.

Link copied to clipboard
fun entries(): <Error class: unknown class>
Link copied to clipboard
fun find(meter: String? = null, handlers: List<MeterHandler> = snapshot()): List<MeterHandler>
fun find(meters: Collection<String>, handlers: List<MeterHandler> = snapshot()): List<MeterHandler>
Link copied to clipboard
fun ids(): <Error class: unknown class>
Link copied to clipboard
fun remove(meter: String? = null): List<MeterHandler>
Link copied to clipboard
fun reset(meter: String? = null): <Error class: unknown class>

Reset the meters in the pool

Link copied to clipboard
Link copied to clipboard
fun specs(meter: String? = null): <Error class: unknown class>
Link copied to clipboard
fun state(meter: String? = null): <Error class: unknown class>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard