SimpleMessageFunctionAccessor

data class SimpleMessageFunctionAccessor<P : Any, in M : MessageExchange<*, *>, out R>(val processor: P, val metadata: FunctionAccessorMetadata<P, R>) : MessageFunctionAccessor<P, M, R>

Constructors

Link copied to clipboard
constructor(processor: P, metadata: FunctionAccessorMetadata<P, R>)

Properties

Link copied to clipboard
open override val contextName: String
Link copied to clipboard
open override val functionKind: FunctionKind
Link copied to clipboard
open override val metadata: FunctionAccessorMetadata<P, R>
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val processor: P
Link copied to clipboard
open override val processorName: String
Link copied to clipboard
open override val qualifiedName: String

The fully qualified name of the function.

Link copied to clipboard
open override val supportedTopics: Set<NamedAggregate>
Link copied to clipboard
open override val supportedType: Class<*>

Message body types supported by the message function.

Functions

Link copied to clipboard
open override fun <A : Annotation> getAnnotation(annotationClass: Class<A>): A?
Link copied to clipboard
fun NamedBoundedContext.getContextAlias(boundedContext: BoundedContext? = MetadataSearcher.metadata.contexts[contextName]): String
Link copied to clipboard
open fun handle(exchange: M): R
Link copied to clipboard
open operator override fun invoke(exchange: M): R
Link copied to clipboard
Link copied to clipboard
open fun isSameFunction(functionInfo: FunctionInfo): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun FunctionInfo.toWaitSignal(commandId: String, stage: CommandStage, isLastProjection: Boolean = false, errorCode: String = ErrorCodes.SUCCEEDED, errorMsg: String = ErrorCodes.SUCCEEDED_MESSAGE, bindingErrors: List<BindingError> = emptyList(), result: Map<String, Any> = emptyMap()): WaitSignal