Uses of Class
org.axonframework.messaging.core.Metadata
Packages that use Metadata
Package
Description
Classes related to message processing in Axon Framework.
A collection of classes which may prove useful when testing Axon-based classes.
-
Uses of Metadata in org.axonframework.messaging.commandhandling.gateway
Methods in org.axonframework.messaging.commandhandling.gateway with parameters of type MetadataModifier and TypeMethodDescriptionSends the givencommandwith the givenmetadataand returns aCommandResultimmediately, without waiting for the command to execute.default CommandResultSends the givencommandwith the givenmetadatain the providedcontext(if available) and returns aCommandResultimmediately, without waiting for the command to execute.CommandGateway.send(Object command, Metadata metadata, ProcessingContext context) Sends the givencommandwith the givenmetadatain the providedcontext(if available) and returns aCommandResultimmediately, without waiting for the command to execute.ConvertingCommandGateway.send(Object command, Metadata metadata, ProcessingContext context) DefaultCommandGateway.send(Object command, Metadata metadata, ProcessingContext context) -
Uses of Metadata in org.axonframework.messaging.core
Methods in org.axonframework.messaging.core that return MetadataModifier and TypeMethodDescriptionReturns aMetadatainstance containing the current entries, and the givenkeyand givenvalue.Metadata.andIfNotPresent(String key, Supplier<String> value) Returns aMetadatainstance containing the current entries, and the givenkeyif it was not yet present in thisMetadata.static MetadataMetadata.emptyInstance()Returns an emptyMetadatainstance.static MetadataCreates a newMetadatainstance from the givenmetadataEntries.Metadata.mergedWith(Map<String, String> additionalEntries) Returns aMetadatainstance containing values ofthis, combined with the givenadditionalEntries.GenericMessage.metadata()Message.metadata()Returns theMetadatafor thisMessage.MessageDecorator.metadata()Returns aMetadatainstance containing a subset of thekeysin this instance.static MetadataCreates aMetadatainstance with a single entry from the givenkeyand givenvalue.Metadata.withoutKeys(Set<String> keys) Returns aMetadatainstance for which the entries with givenkeysare removed.Methods in org.axonframework.messaging.core with parameters of type MetadataModifier and TypeMethodDescriptionprotected abstract MessageAbstractMessage.withMetadata(Metadata metadata) Returns a new message instance with the same payload and properties as this message but givenmetadata.protected MessageGenericMessage.withMetadata(Metadata metadata) -
Uses of Metadata in org.axonframework.test.fixture
Methods in org.axonframework.test.fixture with parameters of type MetadataModifier and TypeMethodDescriptionConfigures a single command with the givenmetadataas part of the "given" state.Dispatches the given command with the providedmetadatato the appropriate command handler and records all activity for result validation.Configures a single event with the givenmetadataas part of the "given" state.Publishes the given event with the providedmetadatato the appropriate event handler and records all activity for result validation. -
Uses of Metadata in org.axonframework.test.util
Methods in org.axonframework.test.util with parameters of type Metadata