OutboundMessage

class OutboundMessage<ID : Any>(expectedSize: Int, val senderId: ID) : Message

An OutboundMessage are messages that a device senderId sends to all other neighbours.

Constructors

Link copied to clipboard
constructor(expectedSize: Int, senderId: ID)

Properties

Link copied to clipboard

The default messages to be sent to all neighbours.

Link copied to clipboard

Functions

Link copied to clipboard
fun addMessage(path: Path, message: SingleOutboundMessage<ID, *>)

Add a message to the OutboundMessage.

Link copied to clipboard

Check if the OutboundMessage is empty.

Link copied to clipboard

Check if the OutboundMessage is not empty.

Link copied to clipboard
fun messagesFor(id: ID): Map<Path, *>

Returns the messages for device id.