BeaconSender

fun interface BeaconSender(source)

SAM type for "fire one beacon now".

Implementations build a krill.zone.shared.node.NodeWire, serialise it to JSON and put it on the multicast group defined by krill.zone.shared.io.http.PeerConstants. Cadence is determined by the caller (typically the BeaconSupervisor); this interface only encapsulates the act of sending a single beacon.

Functions

Link copied to clipboard
abstract suspend fun sendSignal()

Emits one beacon onto the multicast group. Suspends until the platform socket reports the datagram has been queued; does not wait for any acknowledgement (multicast is best-effort).