Site

interface Site<out M> : Exchange<Message.Incoming, Message.Outgoing>

An interface describing a Site in the distributed system. When collected, it will emit the latest aggregated model.

Parameters

M

the type of the underlying aggregated model for this Site.

Functions

Link copied to clipboard
abstract fun receive(incoming: Flow<Message.Outgoing>): Flow<Message.Incoming>

Sends some I as a response to an incoming of O.

Link copied to clipboard
abstract fun send(incoming: Flow<Message.Incoming>): Flow<Message.Outgoing>

Sends some O as a response to an incoming of I.

Properties

Link copied to clipboard
abstract val value: Flow<M>

Returns the current value.

Inheritors

Link copied to clipboard