ManagedQuery

class ManagedQuery<T> : Query<T> , Actor

Properties

Link copied to clipboard
open override val command: SendChannel<QueryCommand<T>>

Send Channel to manipulate the state of the query.

Link copied to clipboard
open override val event: MutableSharedFlow<QueryEvent>

SharedFlow to receive query events.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val state: StateFlow<QueryState<T>>

State Flow to receive the current state of the query.

Functions

Link copied to clipboard
open override fun attach(iid: InstanceId)

Attaches an instance to the actor.

Link copied to clipboard
fun cancel()
Link copied to clipboard
open override fun detach(iid: InstanceId)

Detaches an instance from the actor.

Link copied to clipboard
fun forceUpdate(data: T)
Link copied to clipboard
open override fun hasAttachedInstances(): Boolean

Returns whether the actor has attached instances.

Link copied to clipboard
Link copied to clipboard
fun isCacheable(reply: Reply<T>): Boolean
Link copied to clipboard
fun resume()