Incoming

sealed class Incoming : Message

Types

Link copied to clipboard
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.

Link copied to clipboard
object Companion
Link copied to clipboard
data class Events(val events: List<Event> = emptyList()) : Message.Incoming

Sends multiple events, alongside their body, to the Outgoing side. When sending an event, you guarantee that you'll never send any Event for the same SiteIdentifier and with a smaller SequenceNumber.

Link copied to clipboard
object Ready : Message.Incoming

This message is sent once the sender is done advertising all of its initial sites. This does not mean that additional Advertisement messages will not be sent later, but instead provides a "best-effort guarantee" that the site has issued advertisements for all the messages it was aware of when the Link was established.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard