Advertisement

data class Advertisement(val site: SiteIdentifier, val nextSeqno: SequenceNumber) : Message.Incoming

This message is sent to let the other site know that we have some events at our disposable for a certain site. When an exchange is started, the Incoming site will send some Advertisement for all the sites it knows about, before sending a Ready message.

Afterwards, if messages from new sites become available, some additional Advertisement may eventually get sent.

Additionally, the next expected SequenceNumber when the Advertisement is issued is transmitted. This allows one-shot sync support, because sites may terminate after they have synced all the events advertised before the Ready message was sent.

Parameters

site

the SiteIdentifier for the available site.

nextSeqno

the next expected SequenceNumber for the available site.

Constructors

Link copied to clipboard
fun Advertisement(site: SiteIdentifier, nextSeqno: SequenceNumber)

Properties

Link copied to clipboard
val nextSeqno: SequenceNumber
Link copied to clipboard
val site: SiteIdentifier