Uses of Class
org.axonframework.messaging.core.Metadata
Packages that use Metadata
Package
Description
Part of the Axon Messaging module.
Part of the Axon Messaging module.
Part of the Axon Messaging module.
Micrometer
Propagator carrier over Axon message metadata: the
Propagator.Getter/Propagator.Setter pair used to extract and inject trace context to and from a
message's metadata, so a trace continues across message and service boundaries.Convenience Java DSL built on top of the base DSL, adding shortcuts for common workflow steps such as executing
without extra input payload, waiting for a typed event, and replacing the workflow payload outright.
Internal implementation of the workflow execution engine: the
WorkflowEngine, its scheduling, state and
storage, checkpointing/replay support, cancellation coordination, and the delegates implementing individual step
primitives.Internal runtime utilities for future resolution, workflow event and metadata construction, processing context
propagation, reflection, and workflow state inspection.
Deadline support carried over from Axon Framework 4, to keep deadlines that were scheduled before migrating firing
while a project moves off this API.
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 Test module.
Part of the Axon Test module.
-
Uses of Metadata in io.axoniq.framework.messaging.deadletter
Methods in io.axoniq.framework.messaging.deadletter that return MetadataModifier and TypeMethodDescriptionDeadLetter.diagnostics()The diagnosticMetadataconcerning this letter.GenericDeadLetter.diagnostics()Methods in io.axoniq.framework.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 io.axoniq.framework.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 io.axoniq.framework.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 io.axoniq.framework.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 io.axoniq.framework.messaging.eventhandling.deadletter.jdbc
Methods in io.axoniq.framework.messaging.eventhandling.deadletter.jdbc that return MetadataMethods in io.axoniq.framework.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 theJdbcSequencedDeadLetterQueue.requeue(DeadLetter, UnaryOperator, org.axonframework.messaging.core.unitofwork.ProcessingContext)operation.DefaultDeadLetterStatementFactory.requeueStatement(Connection connection, String letterIdentifier, Cause cause, Instant lastTouched, Metadata diagnostics) JdbcDeadLetter.withDiagnostics(Metadata diagnostics) Constructors in io.axoniq.framework.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 io.axoniq.framework.messaging.eventhandling.deadletter.jpa
Methods in io.axoniq.framework.messaging.eventhandling.deadletter.jpa that return MetadataMethods in io.axoniq.framework.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 io.axoniq.framework.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 io.axoniq.framework.tracing.micrometer.propagator
Methods in io.axoniq.framework.tracing.micrometer.propagator with parameters of type Metadata -
Uses of Metadata in io.axoniq.framework.workflow.dsl.simple
Methods in io.axoniq.framework.workflow.dsl.simple with parameters of type MetadataModifier and TypeMethodDescriptionvoidSimpleWorkflowContext.awaitPublish(String stepName, Object payload, Metadata metadata) Publishes a business event given as payload and metadata and blocks until the step is recorded.Publishes a business event given as payload and metadata. -
Uses of Metadata in io.axoniq.framework.workflow.runtime.execution
Methods in io.axoniq.framework.workflow.runtime.execution with parameters of type Metadata -
Uses of Metadata in io.axoniq.framework.workflow.runtime.util
Methods in io.axoniq.framework.workflow.runtime.util that return MetadataModifier and TypeMethodDescriptionstatic MetadataCreates a new metadata instance with the given workflow id.static MetadataMetadataUtils.create(String workflowId, WorkflowStatus workflowStatus) Creates a new metadata instance with the given workflow id and workflow status.static MetadataMetadataUtils.create(String workflowId, WorkflowStatus workflowStatus, VersionedType workflowDefinitionId) Creates a new metadata instance with the given workflow id, workflow status, and workflow definition id.static MetadataMetadataUtils.create(String workflowId, String stepName, StepStatus stepStatus) Creates a new metadata instance with the given workflow id and step name.static MetadataMetadataUtils.createVersionMigrationStep(String workflowId, String changeId, String version) Metadata for a version-marker event: a COMPLETED step event withstepName = changeIdplus marker keys (versionChangeId,version) whose presence flags this as a version marker.static MetadataMetadataUtils.markWaitForEventStep(Metadata metadata) Marks the given metadata as a step that is waiting for an event.static MetadataMetadataUtils.withWorkflowDefinitionId(Metadata metadata, VersionedType workflowDefinitionId) Enriches metadata with the workflow definition id.Methods in io.axoniq.framework.workflow.runtime.util that return types with arguments of type MetadataModifier and TypeMethodDescriptionMetadataUtils.hasWorkflowId()Predicate that matches metadata that contain a workflow id.MetadataUtils.workflowIdFilter(String workflowId) Returns a predicate that matches metadata with the given workflow id.Methods in io.axoniq.framework.workflow.runtime.util with parameters of type MetadataModifier and TypeMethodDescriptionstatic StringMetadataUtils.getStepName(Metadata metadata) Returns the step name from the metadata.static Optional<StepStatus> MetadataUtils.getStepStatus(Metadata metadata) Returns the step status if present in the metadata.MetadataUtils.getVersion(Metadata metadata) Returns the version if present in the metadata.MetadataUtils.getVersionChangeId(Metadata metadata) Returns the version change id if present in the metadata.static Optional<VersionedType> MetadataUtils.getWorkflowDefinitionId(Metadata metadata) Returns the workflow definition id if present in the metadata.static StringMetadataUtils.getWorkflowId(Metadata metadata) Returns the workflow id from the metadata.static Optional<WorkflowStatus> MetadataUtils.getWorkflowStatus(Metadata metadata) Returns the workflow status if present in the metadata.static booleanMetadataUtils.isPublishStep(Metadata metadata) Checks whether the metadata marks a publish step.static booleanMetadataUtils.isVersionMigrationStep(Metadata metadata) Returns whether the given metadata carries a version marker.static booleanMetadataUtils.isWaitForEventStep(Metadata metadata) Returns whether the given metadata carries a step that is waiting for an event.static MetadataMetadataUtils.markWaitForEventStep(Metadata metadata) Marks the given metadata as a step that is waiting for an event.MetadataUtils.payloadReducer(Metadata metadata) Returns the payload reducer if present in the metadata.static MetadataMetadataUtils.withWorkflowDefinitionId(Metadata metadata, VersionedType workflowDefinitionId) Enriches metadata with the workflow definition id. -
Uses of Metadata in org.axonframework.deadline
Methods in org.axonframework.deadline that return Metadata -
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 <R> CompletableFuture<R> CommandGateway.send(Object command, Class<R> resultType, Metadata metadata, @Nullable ProcessingContext context) Sends the givencommandwith the givenmetadatain the providedcontext(if available) and returns aCompletableFutureimmediately, without waiting for the command to execute.default CommandResultSends the givencommandwith the givenmetadataand 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) default <R> @Nullable RCommandGateway.sendAndWait(Object command, Class<R> resultType, Metadata metadata, @Nullable ProcessingContext context) Send the givencommandwith the givenmetadatain the providedcontext(if available) and waits for the result converted to theresultType. -
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.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.messaging.queryhandling.gateway
Methods in org.axonframework.messaging.queryhandling.gateway with parameters of type MetadataModifier and TypeMethodDescription<R> CompletableFuture<R> DefaultQueryGateway.query(Object query, Class<R> responseType, Metadata metadata, @Nullable ProcessingContext context) default <R> CompletableFuture<R> QueryGateway.query(Object query, Class<R> responseType, Metadata metadata, @Nullable ProcessingContext context) Sends givenquerywith the givenmetadatain the providedcontext(if available) over theQueryBus, expecting a single response with the givenresponseTypefrom a single source.<R> CompletableFuture<List<R>> DefaultQueryGateway.queryMany(Object query, Class<R> responseType, Metadata metadata, @Nullable ProcessingContext context) default <R> CompletableFuture<List<R>> QueryGateway.queryMany(Object query, Class<R> responseType, Metadata metadata, @Nullable ProcessingContext context) Sends givenquerywith the givenmetadatain the providedcontext(if available) over theQueryBus, expecting multiple responses in the form ofresponseTypefrom a single source.<R> org.reactivestreams.Publisher<R> DefaultQueryGateway.streamingQuery(Object query, Class<R> responseType, Metadata metadata, @Nullable ProcessingContext context) default <R> org.reactivestreams.Publisher<R> QueryGateway.streamingQuery(Object query, Class<R> responseType, Metadata metadata, @Nullable ProcessingContext context) Sends givenquerywith the givenmetadatain the providedcontext(if available) over theQueryBus, expecting a response as aPublisherofresponseType.<R> org.reactivestreams.Publisher<R> DefaultQueryGateway.subscriptionQuery(Object query, Class<R> responseType, Metadata metadata, @Nullable ProcessingContext context, int updateBufferSize) default <R> org.reactivestreams.Publisher<R> QueryGateway.subscriptionQuery(Object query, Class<R> responseType, Metadata metadata, @Nullable ProcessingContext context, int updateBufferSize) Sends givenquerywith the givenmetadataover theQueryBusas a subscription query, combining the initial result and emitted update as aPublisherof the givenresponseType. -
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