Uses of Interface
org.axonframework.messaging.core.Context
Packages that use Context
Package
Description
Definitions and implementations of the Event store, the mechanism that can load event streams and append events to
them.
Classes related to message processing in Axon Framework.
-
Uses of Context in org.axonframework.eventsourcing.eventstore
Methods in org.axonframework.eventsourcing.eventstore that return ContextModifier and TypeMethodDescriptionstatic ContextConsistencyMarker.addToContext(Context context, ConsistencyMarker consistencyMarker) Methods in org.axonframework.eventsourcing.eventstore with parameters of type ContextModifier and TypeMethodDescriptionstatic ContextConsistencyMarker.addToContext(Context context, ConsistencyMarker consistencyMarker) -
Uses of Context in org.axonframework.messaging.core
Subinterfaces of Context in org.axonframework.messaging.coreModifier and TypeInterfaceDescriptionstatic interfaceMessageStream.Entry<M extends Message>AMessageStream-specific container ofMessageimplementations.Classes in org.axonframework.messaging.core that implement ContextModifier and TypeClassDescriptionclassImplementation of theContextproviding a basic implementation for context-specific resource management.final recordSimpleEntry<M extends Message>Simple implementation of theMessageStream.Entrycontaining a singleMessageimplementation of typeMand aContext.Methods in org.axonframework.messaging.core that return ContextModifier and TypeMethodDescriptionSimpleEntry.context()Returns the value of thecontextrecord component.static ContextContext.empty()Creates an empty Context.static <T> ContextContext.with(Context.ResourceKey<T> key, T value) Create a Context with a single resource with the given initialkeyandvalue.<T> ContextContext.withResource(Context.ResourceKey<T> key, T resource) Constructs a copy ofthisContext with an additionalresourcefor givenkey.<T> ContextSimpleContext.withResource(Context.ResourceKey<T> key, T resource) Methods in org.axonframework.messaging.core with parameters of type ContextModifier and TypeMethodDescriptionbooleanAdd the givenmessageand accompanyingcontextavailable for reading by a consumer.Method parameters in org.axonframework.messaging.core with type arguments of type ContextModifier and TypeMethodDescriptionstatic <M extends Message>
MessageStream<M> FluxUtils.asMessageStream(reactor.core.publisher.Flux<M> flux, Function<M, Context> contextSupplier) Create a stream that provides theMessagesreturned by the givenflux, automatically wrapped in anMessageStream.Entrywith the resultingContextfrom thecontextSupplier.static <M extends Message>
MessageStream.Single<M> Create a stream that returns a singlewrapping theinvalid reference
entryMessagefrom the givenmono, once the givenmonocompletes.static <M extends Message>
MessageStream.Single<M> MessageStream.fromFuture(CompletableFuture<M> future, Function<M, Context> contextSupplier) static <M extends Message>
MessageStream<M> MessageStream.fromIterable(Iterable<M> iterable, Function<M, Context> contextSupplier) Create a stream that provides theMessagesreturned by the giveniterable, automatically wrapped in anMessageStream.Entrywith the resultingContextfrom thecontextSupplier.static <M extends Message>
MessageStream<M> MessageStream.fromStream(Stream<M> stream, Function<M, Context> contextSupplier) Create a stream that provides theMessagesreturned by the givenstream, automatically wrapped in anMessageStream.Entrywith the resultingContextfrom thecontextSupplier.static <M extends Message>
MessageStream.Single<M> Create a stream containing the single givenmessage, automatically wrapped in anMessageStream.Entry.Constructors in org.axonframework.messaging.core with parameters of type ContextModifierConstructorDescriptionSimpleEntry(M message, Context context) Compact construct asserting thecontextis notnull. -
Uses of Context in org.axonframework.messaging.core.unitofwork
Subinterfaces of Context in org.axonframework.messaging.core.unitofworkModifier and TypeInterfaceDescriptioninterfaceImplementation of theProcessingLifecycleadding mutable resource management operations by implementingContext.Classes in org.axonframework.messaging.core.unitofwork that implement ContextModifier and TypeClassDescriptionclassDeprecated.Only in use for legacy "sync" components.classAProcessingContextimplementation overriding a single resource from the wrappingProcessingContext. -
Uses of Context in org.axonframework.messaging.eventhandling.processing.errorhandling
Methods in org.axonframework.messaging.eventhandling.processing.errorhandling that return ContextModifier and TypeMethodDescriptionErrorContext.context()Returns the value of thecontextrecord component.Constructors in org.axonframework.messaging.eventhandling.processing.errorhandling with parameters of type ContextModifierConstructorDescriptionErrorContext(String eventProcessor, Throwable error, List<? extends EventMessage> failedEvents, Context context) Compact constructor of theErrorContextto validate theeventProcessor,error,failedEvents, andcontextare not null. -
Uses of Context in org.axonframework.messaging.eventhandling.processing.streaming.segmenting
Methods in org.axonframework.messaging.eventhandling.processing.streaming.segmenting that return ContextModifier and TypeMethodDescriptionstatic ContextSegment.addToContext(Context context, Segment segment) Methods in org.axonframework.messaging.eventhandling.processing.streaming.segmenting with parameters of type ContextModifier and TypeMethodDescriptionstatic ContextSegment.addToContext(Context context, Segment segment) Segment.fromContext(Context context) Returns anOptionalofSegment, returning the resource keyed under theSegment.RESOURCE_KEYin the givencontext. -
Uses of Context in org.axonframework.messaging.eventhandling.processing.streaming.token
Methods in org.axonframework.messaging.eventhandling.processing.streaming.token that return ContextModifier and TypeMethodDescriptionstatic ContextTrackingToken.addToContext(Context context, TrackingToken token) Methods in org.axonframework.messaging.eventhandling.processing.streaming.token with parameters of type ContextModifier and TypeMethodDescriptionstatic ContextTrackingToken.addToContext(Context context, TrackingToken token) static Optional<TrackingToken> TrackingToken.fromContext(Context context) Returns anOptionalof {TrackingToken}, returning the resource keyed under theTrackingToken.RESOURCE_KEYin the givencontext. -
Uses of Context in org.axonframework.messaging.eventstreaming
Methods in org.axonframework.messaging.eventstreaming that return ContextModifier and TypeMethodDescriptionstatic ContextTag.addToContext(Context context, Set<Tag> tags) Methods in org.axonframework.messaging.eventstreaming with parameters of type ContextModifier and TypeMethodDescriptionstatic ContextTag.addToContext(Context context, Set<Tag> tags) Tag.fromContext(Context context) Returns anOptionalofTags, returning the resource keyed under theTag.RESOURCE_KEYin the givencontext.