MonitorBuilder

DSL builder for configuring inbox monitoring with message handlers, error handlers, and polling settings.

Constructors

Link copied to clipboard
constructor()

Properties

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

Functions

Link copied to clipboard
fun filterBy(predicate: (Message) -> Boolean)

Sets a predicate that filters which messages are passed to the handler.

Link copied to clipboard
fun onError(handler: suspend (Throwable) -> Unit)

Sets the handler invoked when a polling error occurs.

Link copied to clipboard
fun onFullMessage(handler: suspend (Message) -> Unit)

Sets the handler invoked for each new message (fetches full content).

Link copied to clipboard
fun onMessage(handler: suspend (Message) -> Unit)

Sets the handler invoked for each new message (preview content only).