Uses of Class
org.axonframework.messaging.core.Metadata
Packages that use Metadata
Package
Description
Part of the Axon Messaging module.
Classes related to message processing in Axon Framework.
Part of the Axon Messaging module.
Part of the Axon Messaging module.
Part of the Axon Messaging module.
Part of the Axon Messaging module.
Part of the Axon Test module.
Part of the Axon Test module.
-
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, @Nullable 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, @Nullable ProcessingContext context) DefaultCommandGateway.send(Object command, Metadata metadata, @Nullable 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, @Nullable 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.messaging.deadletter
Methods in org.axonframework.messaging.deadletter that return MetadataModifier and TypeMethodDescriptionDeadLetter.diagnostics()The diagnosticMetadataconcerning this letter.GenericDeadLetter.diagnostics()Methods in org.axonframework.messaging.deadletter with parameters of type MetadataModifier and TypeMethodDescriptionDeadLetter.withDiagnostics(Metadata diagnostics) Construct a copy of thisDeadLetter, replacing theDeadLetter.diagnostics()with the givendiagnostics.GenericDeadLetter.withDiagnostics(Metadata diagnostics) Method parameters in org.axonframework.messaging.deadletter with type arguments of type MetadataModifier and TypeMethodDescriptionstatic <M extends Message>
ShouldEnqueue<M> Decisions.enqueue(Throwable enqueueCause, Function<DeadLetter<? extends M>, Metadata> diagnosticsBuilder) Construct aShouldEnqueuedefining that adead lettershould be enqueued because of the givenenqueueCause.static <M extends Message>
ShouldEnqueue<M> Decisions.requeue(Throwable requeueCause, Function<DeadLetter<? extends M>, Metadata> diagnosticsBuilder) Construct aShouldEnqueuedefining that adead lettershould be requeued because of the givenrequeueCause.default DeadLetter<M> DeadLetter.withDiagnostics(UnaryOperator<Metadata> diagnosticsBuilder) Construct a copy of thisDeadLetter, replacing theDeadLetter.diagnostics()with the result of the givendiagnosticsBuilder.Constructors in org.axonframework.messaging.deadletter with parameters of type MetadataModifierConstructorDescriptionGenericDeadLetter(Object sequenceIdentifier, M message, Cause cause, Instant enqueuedAt, Instant lastTouched, Metadata diagnostics) Construct aGenericDeadLetterdefining all the fields.GenericDeadLetter(Object sequenceIdentifier, M message, Cause cause, Instant enqueuedAt, Instant lastTouched, Metadata diagnostics, Context context) Construct aGenericDeadLetterdefining all the fields including the associatedContext.Constructor parameters in org.axonframework.messaging.deadletter with type arguments of type MetadataModifierConstructorDescriptionShouldEnqueue(Throwable enqueueCause, Function<DeadLetter<? extends M>, Metadata> diagnosticsBuilder) Constructs a defaultEnqueueDecisionto enqueue using the givenenqueueCauseas theShouldEnqueue.enqueueCause(). -
Uses of Metadata in org.axonframework.messaging.eventhandling.deadletter.jdbc
Methods in org.axonframework.messaging.eventhandling.deadletter.jdbc that return MetadataMethods in org.axonframework.messaging.eventhandling.deadletter.jdbc with parameters of type MetadataModifier and TypeMethodDescriptionDeadLetterStatementFactory.requeueStatement(Connection connection, String identifier, Cause cause, Instant lastTouched, Metadata diagnostics) Constructs thePreparedStatementused for theoperation.invalid reference
JdbcSequencedDeadLetterQueue#requeue(DeadLetter, UnaryOperator)DefaultDeadLetterStatementFactory.requeueStatement(Connection connection, String letterIdentifier, Cause cause, Instant lastTouched, Metadata diagnostics) JdbcDeadLetter.withDiagnostics(Metadata diagnostics) Constructors in org.axonframework.messaging.eventhandling.deadletter.jdbc with parameters of type MetadataModifierConstructorDescriptionJdbcDeadLetter(String identifier, long index, String sequenceIdentifier, Instant enqueuedAt, Instant lastTouched, Cause cause, Metadata diagnostics, E message, Context context) Constructs a newJdbcDeadLetterwith all possible parameters. -
Uses of Metadata in org.axonframework.messaging.eventhandling.deadletter.jpa
Methods in org.axonframework.messaging.eventhandling.deadletter.jpa that return MetadataMethods in org.axonframework.messaging.eventhandling.deadletter.jpa with parameters of type MetadataModifier and TypeMethodDescriptionvoidDeadLetterEntry.setDiagnostics(Metadata diagnostics, Converter converter) Sets the diagnostics, using the givenConverterto serialize to byte array format.JpaDeadLetter.withDiagnostics(Metadata diagnostics) Constructors in org.axonframework.messaging.eventhandling.deadletter.jpa with parameters of type MetadataModifierConstructorDescriptionDeadLetterEntry(String processingGroup, String sequenceIdentifier, long sequenceIndex, DeadLetterEventEntry message, Instant enqueuedAt, Instant lastTouched, Cause cause, Metadata diagnostics, Converter converter) Creates a newDeadLetterEntryconsisting of the given parameters.JpaDeadLetter(DeadLetterEntry entry, Metadata diagnostics, M message, Context context) Constructs a newJpaDeadLetterfrom aDeadLetterEntry, deserialized diagnostics and a reconstructed message entry containing both the message and its associated context. -
Uses of Metadata in org.axonframework.messaging.eventhandling.gateway
Methods in org.axonframework.messaging.eventhandling.gateway with parameters of type MetadataModifier and TypeMethodDescriptiondefault voidAppend a single event to the event store in the currentProcessingContextwith the givenMetadata.voidAppend a collection of events to the event store in the currentProcessingContext, all with the givenMetadata.void -
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