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.

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

Properties

Link copied to clipboard
abstract val contextName: String
Link copied to clipboard
abstract val processorName: String

Functions

Link copied to clipboard
fun NamedBoundedContext.getContextAlias(boundedContext: BoundedContext? = MetadataSearcher.metadata.contexts[contextName]): String
Link copied to clipboard

Gets the context alias prefix for this bounded context.

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

Processes the given message exchange and returns a result.