MessageProcessor

interface MessageProcessor<P : Any, M : MessageExchange<*, *>, out R> : ProcessorInfo

Base interface for message processors that handle message exchanges.

Message processors are responsible for processing messages and producing results. They can be synchronous or reactive depending on the result type.

Type Parameters

P

The type of the processor instance

M

The type of message exchange being processed

R

The type of result produced by processing

Inheritors

Functions

Link copied to clipboard
abstract fun process(exchange: M): R

Processes the given message exchange and returns a result.