Uses of Interface
org.axonframework.messaging.commandhandling.CommandMessage
Packages that use CommandMessage
Package
Description
Classes that implement the concept of command handling using explicit command objects.
A collection of classes which may prove useful when testing Axon-based classes.
-
Uses of CommandMessage in org.axonframework.axonserver.connector.command
Methods in org.axonframework.axonserver.connector.command that return CommandMessageModifier and TypeMethodDescriptionstatic CommandMessageCommandConverter.convertCommand(io.axoniq.axonserver.grpc.command.Command command) Methods in org.axonframework.axonserver.connector.command with parameters of type CommandMessageModifier and TypeMethodDescriptionstatic io.axoniq.axonserver.grpc.command.CommandCommandConverter.convertCommandMessage(CommandMessage command, String clientId, String componentName) AxonServerCommandBusConnector.dispatch(CommandMessage command, ProcessingContext processingContext) -
Uses of CommandMessage in org.axonframework.extension.metrics.dropwizard
Methods in org.axonframework.extension.metrics.dropwizard that return types with arguments of type CommandMessageModifier and TypeMethodDescriptionMessageMonitor<? super CommandMessage> GlobalMetricRegistry.registerCommandBus(String commandBusName) Registers new metrics to the registry to monitor aCommandBus. -
Uses of CommandMessage in org.axonframework.extension.metrics.micrometer
Methods in org.axonframework.extension.metrics.micrometer that return types with arguments of type CommandMessageModifier and TypeMethodDescriptionMessageMonitor<? super CommandMessage> GlobalMetricRegistry.registerCommandBus(String commandBusName) Registers new metrics to the registry to monitor aCommandBus.MessageMonitor<? super CommandMessage> GlobalMetricRegistry.registerCommandBus(String commandBusName, Function<Message, Iterable<io.micrometer.core.instrument.Tag>> tagsBuilder) Registers new metrics to the registry to monitor aCommandBususingTags through the giventagsBuilder. -
Uses of CommandMessage in org.axonframework.extension.springboot.autoconfig
Method parameters in org.axonframework.extension.springboot.autoconfig with type arguments of type CommandMessageModifier and TypeMethodDescriptionInterceptorAutoConfiguration.dispatchInterceptorEnhancer(Optional<List<MessageDispatchInterceptor<? super CommandMessage>>> commandInterceptors, Optional<List<MessageDispatchInterceptor<? super EventMessage>>> eventInterceptors, Optional<List<MessageDispatchInterceptor<? super QueryMessage>>> queryInterceptors) Bean creation method for aDecoratorDefinitionthat registersMessage-specificMessageDispatchInterceptorswith theDispatchInterceptorRegistry. -
Uses of CommandMessage in org.axonframework.messaging.commandhandling
Classes in org.axonframework.messaging.commandhandling that implement CommandMessageMethods in org.axonframework.messaging.commandhandling that return CommandMessageModifier and TypeMethodDescriptionCommandMessage.andMetadata(Map<String, String> metadata) GenericCommandMessage.andMetadata(Map<String, String> metadata) default CommandMessageCommandMessage.withConvertedPayload(Class<?> type, Converter converter) CommandMessage.withConvertedPayload(Type type, Converter converter) default CommandMessageCommandMessage.withConvertedPayload(TypeReference<?> type, Converter converter) GenericCommandMessage.withConvertedPayload(Type type, Converter converter) CommandMessage.withMetadata(Map<String, String> metadata) GenericCommandMessage.withMetadata(Map<String, String> metadata) Methods in org.axonframework.messaging.commandhandling with parameters of type CommandMessageModifier and TypeMethodDescriptionintCommandPriorityCalculator.determinePriority(CommandMessage command) Determines the priority of the givencommand.CommandBus.dispatch(CommandMessage command, ProcessingContext processingContext) SimpleCommandBus.dispatch(CommandMessage command, ProcessingContext processingContext) MetadataRoutingStrategy.getRoutingKey(CommandMessage command) RoutingStrategy.getRoutingKey(CommandMessage command) Generates a routing key for the givencommand.UnresolvedRoutingKeyPolicy.getRoutingKey(CommandMessage command) CommandHandler.handle(CommandMessage command, ProcessingContext context) Handles the givencommandwithin the givencontext.protected CompletableFuture<CommandResultMessage> SimpleCommandBus.handle(CommandMessage command, CommandHandler handler) Performs the actual handling logic.SimpleCommandHandlingComponent.handle(CommandMessage command, ProcessingContext context) Constructors in org.axonframework.messaging.commandhandling with parameters of type CommandMessageModifierConstructorDescriptionNoHandlerForCommandException(CommandMessage commandMessage) Initialize this exception with a message describing the givenCommandMessage.NoHandlerForCommandException(CommandMessage message, Class<?> entityType) Initialize this exception with a message describing the givenCommandMessageand the givenentityType. -
Uses of CommandMessage in org.axonframework.messaging.commandhandling.annotation
Methods in org.axonframework.messaging.commandhandling.annotation with parameters of type CommandMessageModifier and TypeMethodDescriptionAnnotationRoutingStrategy.getRoutingKey(CommandMessage command) AnnotatedCommandHandlingComponent.handle(CommandMessage command, ProcessingContext processingContext) -
Uses of CommandMessage in org.axonframework.messaging.commandhandling.distributed
Methods in org.axonframework.messaging.commandhandling.distributed with parameters of type CommandMessageModifier and TypeMethodDescriptionCommandBusConnector.dispatch(CommandMessage command, ProcessingContext processingContext) Dispatches the givencommandto the appropriate command bus, which may be local or remote.DelegatingCommandBusConnector.dispatch(CommandMessage command, ProcessingContext processingContext) DistributedCommandBus.dispatch(CommandMessage command, ProcessingContext processingContext) PayloadConvertingCommandBusConnector.dispatch(CommandMessage command, ProcessingContext processingContext) voidCommandBusConnector.Handler.handle(CommandMessage commandMessage, CommandBusConnector.ResultCallback callback) Handles the incoming command message. -
Uses of CommandMessage in org.axonframework.messaging.commandhandling.interception
Methods in org.axonframework.messaging.commandhandling.interception with parameters of type CommandMessageModifier and TypeMethodDescriptionInterceptingCommandBus.dispatch(CommandMessage command, ProcessingContext processingContext) CommandMessageHandlerInterceptorChain.proceed(CommandMessage command, ProcessingContext context) Constructor parameters in org.axonframework.messaging.commandhandling.interception with type arguments of type CommandMessageModifierConstructorDescriptionCommandMessageHandlerInterceptorChain(List<MessageHandlerInterceptor<? super CommandMessage>> interceptors, CommandHandler commandHandler) Constructs a newCommandMessageHandlerInterceptorChainwith a list ofinterceptorsand ancommandHandler.InterceptingCommandBus(CommandBus delegate, List<MessageHandlerInterceptor<? super CommandMessage>> handlerInterceptors, List<MessageDispatchInterceptor<? super CommandMessage>> dispatchInterceptors) Constructs aInterceptingCommandBus, delegating dispatching and handling logic to the givendelegate. -
Uses of CommandMessage in org.axonframework.messaging.commandhandling.retry
Methods in org.axonframework.messaging.commandhandling.retry with parameters of type CommandMessageModifier and TypeMethodDescriptionRetryingCommandBus.dispatch(CommandMessage command, ProcessingContext processingContext) -
Uses of CommandMessage in org.axonframework.messaging.commandhandling.tracing
Methods in org.axonframework.messaging.commandhandling.tracing that return CommandMessageModifier and TypeMethodDescription<T> CommandMessageCommandBusSpanFactory.propagateContext(CommandMessage commandMessage) Propagates the context of the current span to the given command message.DefaultCommandBusSpanFactory.propagateContext(CommandMessage commandMessage) Methods in org.axonframework.messaging.commandhandling.tracing with parameters of type CommandMessageModifier and TypeMethodDescriptionCommandBusSpanFactory.createDispatchCommandSpan(CommandMessage commandMessage, boolean distributed) Creates a span for the dispatching of a command.DefaultCommandBusSpanFactory.createDispatchCommandSpan(CommandMessage commandMessage, boolean distributed) CommandBusSpanFactory.createHandleCommandSpan(CommandMessage commandMessage, boolean distributed) Creates a span for the handling of a command.DefaultCommandBusSpanFactory.createHandleCommandSpan(CommandMessage commandMessage, boolean distributed) TracingCommandBus.dispatch(CommandMessage command, ProcessingContext processingContext) <T> CommandMessageCommandBusSpanFactory.propagateContext(CommandMessage commandMessage) Propagates the context of the current span to the given command message.DefaultCommandBusSpanFactory.propagateContext(CommandMessage commandMessage) -
Uses of CommandMessage in org.axonframework.messaging.core.configuration
Method parameters in org.axonframework.messaging.core.configuration with type arguments of type CommandMessageModifier and TypeMethodDescriptionMessagingConfigurer.registerCommandDispatchInterceptor(ComponentBuilder<MessageDispatchInterceptor<? super CommandMessage>> interceptorBuilder) MessagingConfigurer.registerCommandHandlerInterceptor(ComponentBuilder<MessageHandlerInterceptor<? super CommandMessage>> interceptorBuilder) MessagingConfigurer.registerCommandMonitor(ComponentBuilder<MessageMonitor<? super CommandMessage>> messageMonitorBuilder) Registers a command monitor using the given message monitor builder. -
Uses of CommandMessage in org.axonframework.messaging.core.interception
Methods in org.axonframework.messaging.core.interception that return types with arguments of type CommandMessageModifier and TypeMethodDescriptionList<MessageDispatchInterceptor<? super CommandMessage>> DefaultDispatchInterceptorRegistry.commandInterceptors(Configuration config) List<MessageHandlerInterceptor<? super CommandMessage>> DefaultHandlerInterceptorRegistry.commandInterceptors(Configuration config) List<MessageDispatchInterceptor<? super CommandMessage>> DispatchInterceptorRegistry.commandInterceptors(Configuration config) Returns the list ofMessageDispatchInterceptorsregistered in this registry.List<MessageHandlerInterceptor<? super CommandMessage>> HandlerInterceptorRegistry.commandInterceptors(Configuration config) Returns the list ofCommandMessage-specificMessageHandlerInterceptorsregistered in this registry.Method parameters in org.axonframework.messaging.core.interception with type arguments of type CommandMessageModifier and TypeMethodDescriptionDefaultDispatchInterceptorRegistry.registerCommandInterceptor(ComponentBuilder<MessageDispatchInterceptor<? super CommandMessage>> interceptorBuilder) DefaultHandlerInterceptorRegistry.registerCommandInterceptor(ComponentBuilder<MessageHandlerInterceptor<? super CommandMessage>> interceptorBuilder) DispatchInterceptorRegistry.registerCommandInterceptor(ComponentBuilder<MessageDispatchInterceptor<? super CommandMessage>> interceptorBuilder) HandlerInterceptorRegistry.registerCommandInterceptor(ComponentBuilder<MessageHandlerInterceptor<? super CommandMessage>> interceptorBuilder) Registers the giveninterceptorBuilderfor aCommandMessageMessageHandlerInterceptorfor all command handling infrastructure components. -
Uses of CommandMessage in org.axonframework.messaging.core.timeout
Methods in org.axonframework.messaging.core.timeout that return types with arguments of type CommandMessageModifier and TypeMethodDescriptionUnitOfWorkTimeoutInterceptorBuilder.buildCommandInterceptor()Constructs aCommandMessagehandler interceptor, to be registered on (e.g.) theCommandBus. -
Uses of CommandMessage in org.axonframework.messaging.monitoring.configuration
Methods in org.axonframework.messaging.monitoring.configuration that return types with arguments of type CommandMessageModifier and TypeMethodDescriptionMessageMonitor<? super CommandMessage> DefaultMessageMonitorRegistry.commandMonitor(Configuration config) MessageMonitor<? super CommandMessage> MessageMonitorRegistry.commandMonitor(Configuration config) Retrieves aMessageMonitordedicated for monitoringCommandMessageprocessing.Method parameters in org.axonframework.messaging.monitoring.configuration with type arguments of type CommandMessageModifier and TypeMethodDescriptionDefaultMessageMonitorRegistry.registerCommandMonitor(ComponentBuilder<MessageMonitor<? super CommandMessage>> monitorBuilder) MessageMonitorRegistry.registerCommandMonitor(ComponentBuilder<MessageMonitor<? super CommandMessage>> monitorBuilder) Registers aMessageMonitorspecifically for monitoring the processing ofCommandMessageinstances. -
Uses of CommandMessage in org.axonframework.messaging.monitoring.interception
Methods in org.axonframework.messaging.monitoring.interception with parameters of type CommandMessageModifier and TypeMethodDescriptionMonitoringCommandHandlerInterceptor.interceptOnHandle(CommandMessage message, ProcessingContext context, MessageHandlerInterceptorChain<CommandMessage> interceptorChain) Method parameters in org.axonframework.messaging.monitoring.interception with type arguments of type CommandMessageModifier and TypeMethodDescriptionMonitoringCommandHandlerInterceptor.interceptOnHandle(CommandMessage message, ProcessingContext context, MessageHandlerInterceptorChain<CommandMessage> interceptorChain) Constructor parameters in org.axonframework.messaging.monitoring.interception with type arguments of type CommandMessageModifierConstructorDescriptionMonitoringCommandHandlerInterceptor(MessageMonitor<? super CommandMessage> messageMonitor) Constructs a MonitoringCommandHandlerInterceptor using the givenMessageMonitor. -
Uses of CommandMessage in org.axonframework.modelling.entity
Methods in org.axonframework.modelling.entity with parameters of type CommandMessageModifier and TypeMethodDescriptionEntityCommandHandler.handle(CommandMessage command, E entity, ProcessingContext context) Handles the givenCommandMessagefor the givenentity.EntityCommandHandlingComponent.handle(CommandMessage command, ProcessingContext context) ConcreteEntityMetamodel.handleCreate(CommandMessage message, ProcessingContext context) EntityMetamodel.handleCreate(CommandMessage message, ProcessingContext context) Handles the givenCommandMessageas the creation of a new entity.PolymorphicEntityMetamodel.handleCreate(CommandMessage message, ProcessingContext context) ConcreteEntityMetamodel.handleInstance(CommandMessage message, E entity, ProcessingContext context) EntityMetamodel.handleInstance(CommandMessage message, E entity, ProcessingContext context) Handles the givenCommandMessagefor the givenentity.PolymorphicEntityMetamodel.handleInstance(CommandMessage message, E entity, ProcessingContext context) Constructors in org.axonframework.modelling.entity with parameters of type CommandMessageModifierConstructorDescriptionChildEntityNotFoundException(CommandMessage commandMessage, Object parentEntity) Creates a new exception with the givencommandMessageandparentEntity.EntityAlreadyExistsForCreationalCommandHandlerException(CommandMessage command, Object existingEntity) Creates a new exception with the givencommandandexistingEntity.Creates a new exception with the givencommand.WrongPolymorphicEntityTypeException(CommandMessage commandMessage, Class<E> polymorphicEntityType, List<Class<E>> supportedEntityTypes, Class<E> givenEntityType) Constructs the exception with the givencommandMessage, thegivenEntitythat was passed to the command handler, and the list ofsupportedEntityTypesthat would be able to handle the command. -
Uses of CommandMessage in org.axonframework.modelling.entity.annotation
Methods in org.axonframework.modelling.entity.annotation with parameters of type CommandMessageModifier and TypeMethodDescriptionRoutingKeyCommandTargetResolver.getTargetChildEntity(List<E> childEntities, CommandMessage message, ProcessingContext context) AnnotatedEntityMetamodel.handleCreate(CommandMessage message, ProcessingContext context) AnnotatedEntityMetamodel.handleInstance(CommandMessage message, E entity, ProcessingContext context) -
Uses of CommandMessage in org.axonframework.modelling.entity.child
Methods in org.axonframework.modelling.entity.child with parameters of type CommandMessageModifier and TypeMethodDescriptionbooleanAbstractEntityChildMetamodel.canHandle(CommandMessage message, P parentEntity, ProcessingContext context) booleanEntityChildMetamodel.canHandle(CommandMessage message, P parentEntity, ProcessingContext context) Checks if this child can handle the givenCommandMessagefor the given parent entity, and a child entity is available to handle it.CommandTargetResolver.getTargetChildEntity(List<E> candidates, CommandMessage message, ProcessingContext context) Returns the target child entity for the given command message.AbstractEntityChildMetamodel.handle(CommandMessage message, P parentEntity, ProcessingContext context) EntityChildMetamodel.handle(CommandMessage message, P parentEntity, ProcessingContext context) Handles the givenCommandMessagefor the given child entity, using the provided parent entity. -
Uses of CommandMessage in org.axonframework.test.fixture
Methods in org.axonframework.test.fixture that return types with arguments of type CommandMessageModifier and TypeMethodDescriptionRecordingCommandBus.recorded()Returns map of all theCommandMessagesdispatched, and their corresponding results.RecordingCommandBus.recordedCommands()Returns the commands that have been dispatched to thisCommandBus.Methods in org.axonframework.test.fixture with parameters of type CommandMessageModifier and TypeMethodDescriptionAxonTestPhase.Given.commands(CommandMessage... messages) Configures the givenmessagesas commands in the "given" state.AxonTestPhase.Then.MessageAssertions.commands(CommandMessage... expectedCommands) Expect the given set of command messages to have been dispatched during the When phase.RecordingCommandBus.dispatch(CommandMessage command, ProcessingContext processingContext) RecordingCommandBus.resultOf(CommandMessage command) Returns the result of the givencommand.Method parameters in org.axonframework.test.fixture with type arguments of type CommandMessageModifier and TypeMethodDescriptionAxonTestPhase.Then.MessageAssertions.commandsMatch(Predicate<List<CommandMessage>> predicate) Allow to check if the set of command messages which have been dispatched during the When phase match given predicate.AxonTestPhase.Then.MessageAssertions.commandsSatisfy(Consumer<List<CommandMessage>> consumer) Invokes the givenconsumerof the set of command messages that have been dispatched during the When phase, allowing for any form of assertionConstructor parameters in org.axonframework.test.fixture with type arguments of type CommandMessageModifierConstructorDescriptionCommandValidator(Supplier<List<CommandMessage>> dispatchedCommands, Runnable clearRecordedCommands, FieldFilter fieldFilter) -
Uses of CommandMessage in org.axonframework.test.matchers
Methods in org.axonframework.test.matchers that return types with arguments of type CommandMessageModifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<List<CommandMessage>> Matchers.noCommands() -
Uses of CommandMessage in org.axonframework.test.util
Methods in org.axonframework.test.util that return types with arguments of type CommandMessageModifier and TypeMethodDescriptionRecordingCommandBus.getDispatchedCommands()Returns a list with all commands that have been dispatched by this command bus.Methods in org.axonframework.test.util with parameters of type CommandMessageModifier and TypeMethodDescriptionRecordingCommandBus.dispatch(CommandMessage command, ProcessingContext processingContext)