ProcessorMetadata

data class ProcessorMetadata<P : Any, in M : MessageExchange<*, *>>(namedBoundedContext: NamedBoundedContext, val name: String, val processorType: Class<P>, val functionRegistry: Set<FunctionAccessorMetadata<P, Mono<*>>>) : NamedBoundedContext, Named, Metadata

Metadata describing a message processor and its functions.

Contains information about the processor class, its bounded context, and the registry of functions it provides.

Parameters

namedBoundedContext

The bounded context this processor belongs to

Type Parameters

P

The processor type

M

The message exchange type

Constructors

Link copied to clipboard
constructor(namedBoundedContext: NamedBoundedContext, name: String, processorType: Class<P>, functionRegistry: Set<FunctionAccessorMetadata<P, Mono<*>>>)

Properties

Link copied to clipboard
open override val contextName: String
Link copied to clipboard

Set of function metadata for this processor

Link copied to clipboard
open override val name: String

The name of the processor

Link copied to clipboard

The class of the processor

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks equality based on processor type.

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
open override fun hashCode(): Int

Returns hash code based on processor type.

Link copied to clipboard
Link copied to clipboard
fun toMessageFunctionRegistry(processor: P): Set<MessageFunction<P, M, Mono<*>>>

Converts the function metadata registry to actual message functions.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of this metadata.