RemoteFrameInbox

class RemoteFrameInbox(limits: RemoteLimits = RemoteLimits()) : AutoCloseable(source)

Bounded ingress between network callbacks and the connection's owner thread. Exhaustion permanently fails the inbox and clears its bytes; the owner must terminate the connection. Queue entries own defensive byte snapshots, bounded by both byte count and entry count.

Constructors

Link copied to clipboard
constructor(limits: RemoteLimits = RemoteLimits())

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun offer(frame: ByteArray): Boolean

Enqueues a frame from any thread, returning false after close or a terminal bound violation.

Link copied to clipboard
fun poll(): ByteArray?

Transfers one queued snapshot to the owner, or returns null when no frame is pending.