Documentation / dataflow-async / com.femastudios.dataflow.async / FlowStrategy
Go to reference

FlowStrategy

sealed class FlowStrategy

This sealed enum-like class defines how the AttributeData of an attribute is calculated.

The current possible choices are: SYNCHRONOUS, CONSISTENT, EVENTUALLY_CONSISTENT.

See also online doc

Companion Object Properties

CONSISTENT

The attribute will be calculated in a background thread, using a thread pool. The status will be will always be set to Loading while doing so.

val CONSISTENT: FlowStrategy

EVENTUALLY_CONSISTENT

The attribute will be calculated in a background thread, using a thread pool. The old value will be kept until the new one is produced. The status of the attribute will be Loading only the first time the value is being calculated, or if the previous status was in error.

val EVENTUALLY_CONSISTENT: FlowStrategy

SYNCHRONOUS

The attribute will be calculated on the same thread that triggered the computation. The old value is kept until the new value is produced. The status of the attribute will NEVER be Loading.

val SYNCHRONOUS: FlowStrategy