| Package | Description |
|---|---|
| org.axonframework.deadline | |
| org.axonframework.eventhandling |
Classes related to event handling and dispatching, such as
Event Listeners and the Event Bus. |
| org.axonframework.eventhandling.async | |
| org.axonframework.eventhandling.gateway | |
| org.axonframework.eventhandling.interceptors | |
| org.axonframework.eventhandling.pooled | |
| org.axonframework.eventhandling.scheduling.quartz | |
| org.axonframework.messaging |
Classes related to message processing in Axon Framework.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
DeadlineMessage<T>
Represents a Message for a Deadline, specified by its deadline name and optionally containing a deadline payload.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GenericDeadlineMessage<T>
Generic implementation of the
DeadlineMessage. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
DomainEventMessage<T>
Represents a Message that wraps a DomainEvent and an Event representing an important change in the Domain.
|
interface |
TrackedEventMessage<T>
Represents an
EventMessage containing a TrackingToken. |
| Modifier and Type | Class and Description |
|---|---|
class |
GenericDomainEventMessage<T>
Generic implementation of a
DomainEventMessage. |
class |
GenericEventMessage<T>
Generic implementation of the EventMessage interface.
|
class |
GenericTrackedDomainEventMessage<T>
Generic implementation of a
DomainEventMessage that is also a TrackedEventMessage. |
class |
GenericTrackedEventMessage<T>
Generic implementation of a
TrackedEventMessage. |
| Modifier and Type | Method and Description |
|---|---|
EventMessage<T> |
EventMessage.andMetaData(Map<String,?> metaData)
Returns a copy of this EventMessage with it MetaData merged with the given
metaData. |
static <T> EventMessage<T> |
GenericEventMessage.asEventMessage(Object event)
Returns the given event as an EventMessage.
|
EventMessage<T> |
EventMessage.withMetaData(Map<String,?> metaData)
Returns a copy of this EventMessage with the given
metaData. |
| Modifier and Type | Method and Description |
|---|---|
List<? extends EventMessage<?>> |
ErrorContext.failedEvents()
The events part of the batch that failed.
|
List<MessageHandlerInterceptor<? super EventMessage<?>>> |
EventProcessor.getHandlerInterceptors()
Return the list of already registered
MessageHandlerInterceptors for this event processor. |
List<MessageHandlerInterceptor<? super EventMessage<?>>> |
AbstractEventProcessor.getHandlerInterceptors() |
SubscribableMessageSource<? extends EventMessage<?>> |
SubscribingEventProcessor.getMessageSource()
Returns the message source from which this processor receives its events
|
SequencingPolicy<? super EventMessage<?>> |
SimpleEventHandlerInvoker.getSequencingPolicy() |
protected List<? extends EventMessage<?>> |
AbstractEventBus.intercept(List<? extends EventMessage<?>> events)
Invokes all the dispatch interceptors.
|
protected List<EventMessage<?>> |
AbstractEventBus.queuedMessages()
Returns a list of all the events staged for publication in this Unit of Work.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> DomainEventMessage<T> |
EventUtils.asDomainEventMessage(EventMessage<T> eventMessage)
Deprecated.
since this method is not used for external use. This method is intended to deduce whether a given
EventMessage is a DomainEventMessage and if not, push it into being one by adjusting the fields.
However, this is only intended to simplify the storage of events. This does not make a regular EventMessage a DomainEventMessage by any means. The only way to have a true DomainEventMessage is by publishing events from within an Aggregate, by using the AggregateLifecycle
operations. |
static <T> TrackedEventMessage<T> |
EventUtils.asTrackedEventMessage(EventMessage<T> eventMessage,
TrackingToken trackingToken)
|
boolean |
AnnotationEventHandlerAdapter.canHandle(EventMessage<?> event) |
protected boolean |
TrackingEventProcessor.canHandle(EventMessage<?> eventMessage,
Collection<Segment> segments)
Indicates whether any of the components handling events for this Processor are able to handle the given
eventMessage for any of the given segments. |
boolean |
SimpleEventHandlerInvoker.canHandle(EventMessage<?> eventMessage,
Segment segment) |
boolean |
EventHandlerInvoker.canHandle(EventMessage<?> eventMessage,
Segment segment)
Check whether or not this invoker has handlers that can handle the given
eventMessage for a given segment. |
boolean |
MultiEventHandlerInvoker.canHandle(EventMessage<?> eventMessage,
Segment segment) |
protected boolean |
AbstractEventProcessor.canHandle(EventMessage<?> eventMessage,
Segment segment)
Indicates whether the processor can/should handle the given
eventMessage for the given segment. |
Object |
EventMessageHandler.handle(EventMessage<?> event)
Process the given event.
|
Object |
AnnotationEventHandlerAdapter.handle(EventMessage<?> event) |
void |
SimpleEventHandlerInvoker.handle(EventMessage<?> message,
Segment segment) |
void |
EventHandlerInvoker.handle(EventMessage<?> message,
Segment segment)
Handle the given
message for the given segment. |
void |
MultiEventHandlerInvoker.handle(EventMessage<?> message,
Segment segment) |
void |
PropagatingErrorHandler.onError(Exception exception,
EventMessage<?> event,
EventMessageHandler eventHandler) |
void |
ListenerInvocationErrorHandler.onError(Exception exception,
EventMessage<?> event,
EventMessageHandler eventHandler)
Invoked after given
eventListener failed to handle given event. |
void |
LoggingErrorHandler.onError(Exception exception,
EventMessage<?> event,
EventMessageHandler eventHandler) |
default void |
EventBus.publish(EventMessage<?>... events)
Publish a collection of events on this bus (one, or multiple).
|
protected void |
AbstractEventProcessor.reportIgnored(EventMessage<?> eventMessage)
Report the given
eventMessage as ignored. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractEventBus.afterCommit(List<? extends EventMessage<?>> events)
Process given
events after the Unit of Work has been committed. |
protected void |
AbstractEventBus.commit(List<? extends EventMessage<?>> events)
Process given
events while the Unit of Work root is being committed. |
void |
EventProcessingStrategy.handle(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor)
Handle the given batch of
events. |
void |
EventProcessingStrategy.handle(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor)
Handle the given batch of
events. |
void |
DirectEventProcessingStrategy.handle(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor) |
void |
DirectEventProcessingStrategy.handle(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor) |
protected List<? extends EventMessage<?>> |
AbstractEventBus.intercept(List<? extends EventMessage<?>> events)
Invokes all the dispatch interceptors.
|
TrackingEventProcessor.Builder |
TrackingEventProcessor.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor) |
SubscribingEventProcessor.Builder |
SubscribingEventProcessor.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor) |
AbstractEventBus.Builder |
AbstractEventBus.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor)
Sets the
MessageMonitor to monitor ingested EventMessages. |
AbstractEventProcessor.Builder |
AbstractEventProcessor.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor)
Sets the
MessageMonitor to monitor EventMessages before and after they're processed. |
SimpleEventBus.Builder |
SimpleEventBus.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor) |
SubscribingEventProcessor.Builder |
SubscribingEventProcessor.Builder.messageSource(SubscribableMessageSource<? extends EventMessage<?>> messageSource)
Sets the
SubscribableMessageSource (e.g. |
protected void |
AbstractEventBus.prepareCommit(List<? extends EventMessage<?>> events)
Process given
events while the Unit of Work root is preparing for commit. |
protected void |
SubscribingEventProcessor.process(List<? extends EventMessage<?>> eventMessages)
Process the given messages.
|
protected void |
AbstractEventProcessor.processInUnitOfWork(List<? extends EventMessage<?>> eventMessages,
UnitOfWork<? extends EventMessage<?>> unitOfWork)
Process a batch of events.
|
protected void |
AbstractEventProcessor.processInUnitOfWork(List<? extends EventMessage<?>> eventMessages,
UnitOfWork<? extends EventMessage<?>> unitOfWork)
Process a batch of events.
|
protected void |
AbstractEventProcessor.processInUnitOfWork(List<? extends EventMessage<?>> eventMessages,
UnitOfWork<? extends EventMessage<?>> unitOfWork,
Collection<Segment> processingSegments)
Process a batch of events.
|
protected void |
AbstractEventProcessor.processInUnitOfWork(List<? extends EventMessage<?>> eventMessages,
UnitOfWork<? extends EventMessage<?>> unitOfWork,
Collection<Segment> processingSegments)
Process a batch of events.
|
void |
EventBus.publish(List<? extends EventMessage<?>> events)
Publish a collection of events on this bus (one, or multiple).
|
void |
AbstractEventBus.publish(List<? extends EventMessage<?>> events) |
Registration |
EventBus.registerDispatchInterceptor(MessageDispatchInterceptor<? super EventMessage<?>> dispatchInterceptor)
Register the given
interceptor with this bus. |
Registration |
AbstractEventBus.registerDispatchInterceptor(MessageDispatchInterceptor<? super EventMessage<?>> dispatchInterceptor)
Register the given
interceptor with this bus. |
Registration |
AbstractEventProcessor.registerHandlerInterceptor(MessageHandlerInterceptor<? super EventMessage<?>> interceptor) |
SimpleEventHandlerInvoker.Builder |
SimpleEventHandlerInvoker.Builder.sequencingPolicy(SequencingPolicy<? super EventMessage<?>> sequencingPolicy)
Sets the
SequencingPolicy in charge of deciding whether a given event should be handled (through
SimpleEventHandlerInvoker.handle(EventMessage, Segment)) by the given Segment. |
Registration |
AbstractEventBus.subscribe(Consumer<List<? extends EventMessage<?>>> eventProcessor) |
| Constructor and Description |
|---|
AbstractEventEntry(EventMessage<?> eventMessage,
Serializer serializer,
Class<T> contentType)
Construct a new event entry from a published event message to enable storing the event or sending it to a remote
location.
|
GenericTrackedEventMessage(TrackingToken trackingToken,
EventMessage<T> delegate)
Creates a GenericTrackedEventMessage with given
trackingToken and delegate event message. |
| Constructor and Description |
|---|
ErrorContext(String eventProcessor,
Throwable error,
List<? extends EventMessage<?>> failedEvents)
Instantiate an ErrorContext for the given
eventProcessor, due to the given error, with the given
failedEvents. |
| Modifier and Type | Method and Description |
|---|---|
Object |
SequentialPerAggregatePolicy.getSequenceIdentifierFor(EventMessage event) |
Object |
PropertySequencingPolicy.getSequenceIdentifierFor(EventMessage eventMessage) |
Object |
FullConcurrencyPolicy.getSequenceIdentifierFor(EventMessage<?> event) |
| Modifier and Type | Method and Description |
|---|---|
PropertySequencingPolicy.Builder<T,K> |
PropertySequencingPolicy.Builder.fallbackSequencingPolicy(SequencingPolicy<EventMessage> fallbackSequencingPolicy)
Defines the fallback sequencing policy, the sequencing policy which is applied if the event message payload
is not of a supported type.
|
void |
AsynchronousEventProcessingStrategy.handle(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor) |
void |
AsynchronousEventProcessingStrategy.handle(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor) |
protected void |
AsynchronousEventProcessingStrategy.schedule(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor)
Schedules this task for execution when all pre-conditions have been met.
|
protected void |
AsynchronousEventProcessingStrategy.schedule(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor)
Schedules this task for execution when all pre-conditions have been met.
|
boolean |
EventProcessorTask.scheduleEvents(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor)
Schedules a batch of events for processing.
|
boolean |
EventProcessorTask.scheduleEvents(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor)
Schedules a batch of events for processing.
|
| Constructor and Description |
|---|
AsynchronousEventProcessingStrategy(Executor executor,
SequencingPolicy<? super EventMessage<?>> sequencingPolicy)
Initializes a new
AsynchronousEventProcessingStrategy that uses the given executor to execute
event processing tasks and sequencingPolicy that determines if an event may be processed in sequence or
in parallel. |
| Modifier and Type | Method and Description |
|---|---|
protected <E> EventMessage<? extends E> |
AbstractEventGateway.processInterceptors(EventMessage<E> eventMessage)
Invokes all the dispatch interceptors and returns the EventMessage instance that should be dispatched.
|
| Modifier and Type | Method and Description |
|---|---|
protected <E> EventMessage<? extends E> |
AbstractEventGateway.processInterceptors(EventMessage<E> eventMessage)
Invokes all the dispatch interceptors and returns the EventMessage instance that should be dispatched.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultEventGateway.Builder |
DefaultEventGateway.Builder.dispatchInterceptors(List<MessageDispatchInterceptor<? super EventMessage<?>>> dispatchInterceptors) |
AbstractEventGateway.Builder |
AbstractEventGateway.Builder.dispatchInterceptors(List<MessageDispatchInterceptor<? super EventMessage<?>>> dispatchInterceptors)
|
Registration |
AbstractEventGateway.registerDispatchInterceptor(MessageDispatchInterceptor<? super EventMessage<?>> interceptor)
Registers an event dispatch interceptor within an
EventGateway. |
| Modifier and Type | Method and Description |
|---|---|
BiFunction<Integer,EventMessage<?>,EventMessage<?>> |
EventLoggingInterceptor.handle(List<? extends EventMessage<?>> messages) |
BiFunction<Integer,EventMessage<?>,EventMessage<?>> |
EventLoggingInterceptor.handle(List<? extends EventMessage<?>> messages) |
| Modifier and Type | Method and Description |
|---|---|
BiFunction<Integer,EventMessage<?>,EventMessage<?>> |
EventLoggingInterceptor.handle(List<? extends EventMessage<?>> messages) |
| Modifier and Type | Method and Description |
|---|---|
PooledStreamingEventProcessor.Builder |
PooledStreamingEventProcessor.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor) |
| Modifier and Type | Method and Description |
|---|---|
protected org.quartz.JobDetail |
QuartzEventScheduler.buildJobDetail(EventMessage event,
org.quartz.JobKey jobKey)
Builds the JobDetail instance for Quartz, which defines the Job that needs to be executed when the trigger
fires.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
Headers.defaultHeaders(EventMessage<?> message,
SerializedObject<?> serializedObject)
Generate defaults headers to recognise an event message.
|
Copyright © 2010–2022. All rights reserved.