Heartbeat

Liveness ping/pong — HeartbeatPartitionDetector.

The odd one out: heartbeat declares a String prefix ("kuilt.heartbeat.ping") whose first byte happens to be 0x6b, and :kuilt-liveness cannot depend on :kuilt-session to derive from here. The reservation is one-directional and pinned by test, not by construction.

classifies is therefore much narrower than matches — the real test is the whole string, so every ordinary payload beginning with k ("keepalive", "key", …) claims this byte while being a perfectly ordinary application frame.

Properties

Link copied to clipboard
val byte: Byte

the first byte of every frame in this family.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
open fun classifies(bytes: ByteArray): Boolean

Whether bytes is a frame of this family, by the family's own real classifier.

Link copied to clipboard

Whether bytes claims this family's prefix byte — a single-byte test. Empty is never.