ProcessingParameter

interface ProcessingParameter<T>

Processing parameter

Since

5.0.0

Parameters

T
  • The parameter value type

Important: This interface is not stable for inheritance, as new methods may be added, but is stable for use.

Functions

Link copied to clipboard
abstract fun addApplicator(    canApply: (value: T) -> Boolean,     apply: suspend (value: T) -> Unit,     applyTimeoutMillis: Long): MimiParameterApplicator

Adds an out-of-date MimiParameterApplicator to the ProcessingParameter.

abstract suspend fun addApplicator(    value: T,     canApply: (value: T) -> Boolean,     apply: suspend (value: T) -> Unit,     applyTimeoutMillis: Long): Pair<MimiParameterApplicator, ProcessingParameterResult>

Adds an already up-to-date MimiParameterApplicator to the ProcessingParameter and triggers a call to attempt to update all other MimiParameterApplicator with that value.

Link copied to clipboard
abstract suspend fun apply(value: T): ProcessingParameterResult

Apply

Link copied to clipboard
abstract suspend fun synchronize(): ProcessingParameterResult

Synchronize

Properties

Link copied to clipboard
abstract var deliveryMode: ParameterDeliveryMode

Defines how requests to update the ProcessingParameter value are performed.

Link copied to clipboard
abstract val value: T

The current value of the ProcessingParameter - it is the most recent successfully applied value.

Inheritors

Link copied to clipboard
Link copied to clipboard