Modifier and Type | Method and Description |
---|---|
AxonServerEventStore.Builder |
AxonServerEventStore.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor) |
Modifier and Type | Method and Description |
---|---|
List<MessageHandlerInterceptor<? super EventMessage<?>>> |
EventProcessingModule.interceptorsFor(String processorName) |
List<MessageHandlerInterceptor<? super EventMessage<?>>> |
EventProcessingConfiguration.interceptorsFor(String processorName)
|
SequencingPolicy<? super EventMessage<?>> |
EventProcessingModule.sequencingPolicy(String processingGroup) |
SequencingPolicy<? super EventMessage<?>> |
EventProcessingConfiguration.sequencingPolicy(String processingGroup)
Returns the
SequencingPolicy tied to the given processingGroup . |
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<?>>> |
AbstractEventProcessor.getHandlerInterceptors() |
List<MessageHandlerInterceptor<? super EventMessage<?>>> |
EventProcessor.getHandlerInterceptors()
Return the list of already registered
MessageHandlerInterceptor s for this event processor. |
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)
Convert a plain
EventMessage to a DomainEventMessage . |
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 |
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 . |
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 . |
Object |
AnnotationEventHandlerAdapter.handle(EventMessage<?> event) |
Object |
EventMessageHandler.handle(EventMessage<?> event)
Process the given event.
|
void |
MultiEventHandlerInvoker.handle(EventMessage<?> message,
Segment segment) |
void |
SimpleEventHandlerInvoker.handle(EventMessage<?> message,
Segment segment) |
void |
EventHandlerInvoker.handle(EventMessage<?> message,
Segment segment)
Handle the given
message for the given segment . |
void |
LoggingErrorHandler.onError(Exception exception,
EventMessage<?> event,
EventMessageHandler eventHandler) |
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 . |
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 |
DirectEventProcessingStrategy.handle(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor) |
void |
DirectEventProcessingStrategy.handle(List<? extends EventMessage<?>> events,
Consumer<List<? extends EventMessage<?>>> processor) |
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 . |
protected List<? extends EventMessage<?>> |
AbstractEventBus.intercept(List<? extends EventMessage<?>> events)
Invokes all the dispatch interceptors.
|
AbstractEventProcessor.Builder |
AbstractEventProcessor.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor)
Sets the
MessageMonitor to monitor EventMessage s before and after they're processed. |
AbstractEventBus.Builder |
AbstractEventBus.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor)
Sets the
MessageMonitor to monitor ingested EventMessage s. |
TrackingEventProcessor.Builder |
TrackingEventProcessor.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor) |
SubscribingEventProcessor.Builder |
SubscribingEventProcessor.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor) |
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) |
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
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 |
---|---|
void |
FilteringEventStorageEngine.appendEvents(EventMessage<?>... events) |
void |
SnapshotTrigger.eventHandled(EventMessage<?> msg)
Invoked when an event is handled by an aggregate.
|
protected void |
EventSourcedAggregate.publish(EventMessage<?> msg) |
protected void |
EventSourcedAggregate.publishOnEventBus(EventMessage<?> msg) |
Modifier and Type | Method and Description |
---|---|
void |
FilteringEventStorageEngine.appendEvents(List<? extends EventMessage<?>> events) |
Constructor and Description |
---|
FilteringEventStorageEngine(EventStorageEngine delegate,
Predicate<? super EventMessage<?>> filter)
Initializes the FilteringEventStorageEngine delegating all event messages matching the given
filter to
the given delegate . |
Modifier and Type | Method and Description |
---|---|
static <T extends EventMessage<?>> |
Conflicts.eventMatching(Predicate<? super T> messageFilter)
Returns a
Predicate for a ConflictResolver that responds affirmative if any event in a list of
unseen events matches the given messageFilter . |
Modifier and Type | Method and Description |
---|---|
default void |
EventStorageEngine.appendEvents(EventMessage<?>... events)
Append one or more events to the event storage.
|
protected void |
AbstractEventStorageEngine.handlePersistenceException(Exception exception,
EventMessage<?> failedEvent)
Invoke when an Exception is raised while persisting an Event or Snapshot.
|
Modifier and Type | Method and Description |
---|---|
protected void |
EmbeddedEventStore.afterCommit(List<? extends EventMessage<?>> events) |
void |
AbstractEventStorageEngine.appendEvents(List<? extends EventMessage<?>> events) |
void |
EventStorageEngine.appendEvents(List<? extends EventMessage<?>> events)
Append a list of events to the event storage.
|
void |
SequenceEventStorageEngine.appendEvents(List<? extends EventMessage<?>> events) |
protected abstract void |
AbstractEventStorageEngine.appendEvents(List<? extends EventMessage<?>> events,
Serializer serializer)
Append given
events to the backing database. |
AbstractEventStore.Builder |
AbstractEventStore.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor) |
EmbeddedEventStore.Builder |
EmbeddedEventStore.Builder.messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor) |
protected void |
AbstractEventStore.prepareCommit(List<? extends EventMessage<?>> events) |
Modifier and Type | Method and Description |
---|---|
void |
InMemoryEventStorageEngine.appendEvents(List<? extends EventMessage<?>> events) |
Modifier and Type | Method and Description |
---|---|
protected void |
JdbcEventStorageEngine.appendEvents(List<? extends EventMessage<?>> events,
Serializer serializer) |
Modifier and Type | Method and Description |
---|---|
protected Object |
JpaEventStorageEngine.createEventEntity(EventMessage<?> eventMessage,
Serializer serializer)
Returns a Jpa event entity for given
eventMessage . |
Modifier and Type | Method and Description |
---|---|
protected void |
JpaEventStorageEngine.appendEvents(List<? extends EventMessage<?>> events,
Serializer serializer) |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
Headers.defaultHeaders(EventMessage<?> message,
SerializedObject<?> serializedObject)
Generate defaults headers to recognise an event message.
|
Modifier and Type | Method and Description |
---|---|
MessageMonitor<? super EventMessage<?>> |
GlobalMetricRegistry.registerEventBus(String name)
Registers new metrics to the registry to monitor an
EventBus . |
MessageMonitor<? super EventMessage<?>> |
GlobalMetricRegistry.registerEventProcessor(String eventProcessorName)
Registers new metrics to the registry to monitor an
EventProcessor . |
Modifier and Type | Method and Description |
---|---|
MessageMonitor.MonitorCallback |
EventProcessorLatencyMonitor.onMessageIngested(EventMessage<?> message) |
Modifier and Type | Method and Description |
---|---|
MessageMonitor<? super EventMessage<?>> |
GlobalMetricRegistry.registerEventBus(String name)
Registers new metrics to the registry to monitor an
EventBus . |
MessageMonitor<? super EventMessage<?>> |
GlobalMetricRegistry.registerEventProcessor(String name)
Registers new metrics to the registry to monitor an
EventProcessor . |
Modifier and Type | Method and Description |
---|---|
MessageMonitor.MonitorCallback |
EventProcessorLatencyMonitor.onMessageIngested(EventMessage<?> message) |
Modifier and Type | Method and Description |
---|---|
protected <P> EventMessage<P> |
AnnotatedAggregate.createMessage(P payload,
MetaData metaData)
|
Modifier and Type | Method and Description |
---|---|
protected void |
AnnotatedAggregate.publish(EventMessage<?> msg)
Publish an event to the aggregate root and its entities first and external event handlers (using the given
event bus) later.
|
void |
AnnotatedChildEntity.publish(EventMessage<?> msg,
P declaringInstance) |
void |
EntityModel.publish(EventMessage<?> message,
T target)
Publish given event
message on the given target entity. |
void |
ChildEntity.publish(EventMessage<?> msg,
T declaringInstance)
Publish the given
msg to the appropriate handlers on the given declaringInstance |
protected void |
AnnotatedAggregate.publishOnEventBus(EventMessage<?> msg)
Publish an event to external event handlers using the given event bus.
|
protected <T> Stream<Object> |
AggregateMemberAnnotatedChildEntityDefinition.resolveEventTargets(EventMessage message,
T parentEntity,
Field field,
ForwardingMode eventForwardingMode) |
protected <T> Stream<Object> |
AggregateMemberAnnotatedChildEntityCollectionDefinition.resolveEventTargets(EventMessage message,
T parentEntity,
Field field,
ForwardingMode eventForwardingMode) |
protected abstract <T> Stream<Object> |
AbstractChildEntityDefinition.resolveEventTargets(EventMessage message,
T parentEntity,
Field field,
ForwardingMode eventForwardingMode)
Resolve the targets of an incoming
EventMessage to the right Child
Entities. |
protected <T> Stream<Object> |
AggregateMemberAnnotatedChildEntityMapDefinition.resolveEventTargets(EventMessage message,
T parentEntity,
Field field,
ForwardingMode eventForwardingMode) |
Constructor and Description |
---|
AnnotatedChildEntity(EntityModel<C> entityModel,
boolean forwardCommands,
BiFunction<CommandMessage<?>,P,C> commandTargetResolver,
BiFunction<EventMessage<?>,P,Stream<C>> eventTargetResolver)
Initiates a new AnnotatedChildEntity instance that uses the provided
entityModel to delegate command
and event handling to an annotated child entity. |
Modifier and Type | Method and Description |
---|---|
boolean |
AnnotatedSaga.canHandle(EventMessage<?> event) |
boolean |
AnnotatedSagaManager.canHandle(EventMessage<?> eventMessage,
Segment segment) |
protected Set<AssociationValue> |
AnnotatedSagaManager.extractAssociationValues(EventMessage<?> event) |
protected abstract Set<AssociationValue> |
AbstractSagaManager.extractAssociationValues(EventMessage<?> event)
Extracts the AssociationValues from the given
event as relevant for a Saga of given
sagaType . |
AssociationValue |
SagaMethodMessageHandlingMember.getAssociationValue(EventMessage<?> eventMessage)
The AssociationValue to find the saga instance with, or
null if no AssociationValue can be found on
the given eventMessage . |
protected SagaInitializationPolicy |
AnnotatedSagaManager.getSagaCreationPolicy(EventMessage<?> event) |
protected abstract SagaInitializationPolicy |
AbstractSagaManager.getSagaCreationPolicy(EventMessage<?> event)
Returns the Saga Initialization Policy for a Saga of the given
sagaType and event . |
Object |
AnnotatedSaga.handle(EventMessage<?> event) |
void |
AbstractSagaManager.handle(EventMessage<?> event,
Segment segment) |
<T> Object |
PayloadAssociationResolver.resolve(String associationPropertyName,
EventMessage<?> message,
MessageHandlingMember<T> handler)
Finds the association property value in the message's payload.
|
<T> Object |
AssociationResolver.resolve(String associationPropertyName,
EventMessage<?> message,
MessageHandlingMember<T> handler)
Resolves the associationPropertyName as a value.
|
<T> Object |
MetaDataAssociationResolver.resolve(String associationPropertyName,
EventMessage<?> message,
MessageHandlingMember<T> handler)
Finds the association property value by looking up the association property name in the event message's
MetaData . |
Modifier and Type | Method and Description |
---|---|
List<MessageHandlingMember<? super T>> |
SagaModel.findHandlerMethods(EventMessage<?> event)
Returns a
List of MessageHandlingMember that can handle the given event. |
default boolean |
SagaModel.hasHandlerMethod(EventMessage<?> eventMessage)
Indicates whether the Saga described by this model has a handler for the given
eventMessage |
Optional<AssociationValue> |
SagaModel.resolveAssociation(EventMessage<?> eventMessage)
|
Modifier and Type | Method and Description |
---|---|
<T> EventMessage<T> |
EventMessageConverter.convertFromInboundMessage(org.springframework.messaging.Message<T> message)
Converts a Spring inbound
message into an Axon event Message |
<T> EventMessage<T> |
DefaultEventMessageConverter.convertFromInboundMessage(org.springframework.messaging.Message<T> message) |
protected EventMessage<?> |
InboundEventMessageChannelAdapter.transformMessage(org.springframework.messaging.Message<?> message)
Transforms the given incoming Spring Messaging
message to an Axon EventMessage. |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.context.ApplicationEvent |
ApplicationContextEventPublisher.convert(EventMessage<?> eventMessage)
Converts the given Axon
eventMessage to a Spring ApplicationEvent. |
<T> org.springframework.messaging.Message<T> |
EventMessageConverter.convertToOutboundMessage(EventMessage<T> event)
Converts Axon
event into Spring message. |
<T> org.springframework.messaging.Message<T> |
DefaultEventMessageConverter.convertToOutboundMessage(EventMessage<T> event) |
protected org.springframework.messaging.Message<?> |
OutboundEventMessageChannelAdapter.transform(EventMessage<?> event)
Transforms the given Axon
event into a Spring Messaging Message. |
Modifier and Type | Method and Description |
---|---|
protected void |
OutboundEventMessageChannelAdapter.handle(List<? extends EventMessage<?>> events)
If allows by the filter, wraps the given
event in a GenericMessage ands sends it to the
configured MessageChannel . |
Registration |
InboundEventMessageChannelAdapter.subscribe(Consumer<List<? extends EventMessage<?>>> messageProcessor) |
Constructor and Description |
---|
ApplicationContextEventPublisher(SubscribableMessageSource<? extends EventMessage<?>> messageSource)
Initialize the publisher to forward events received from the given
messageSource to the application
context that this bean is part of. |
InboundEventMessageChannelAdapter(List<Consumer<List<? extends EventMessage<?>>>> processors,
EventMessageConverter eventMessageConverter)
Initialize the adapter to publish all incoming events to the subscribed processors.
|
OutboundEventMessageChannelAdapter(SubscribableMessageSource<EventMessage<?>> messageSource,
org.springframework.messaging.MessageChannel channel)
Initialize an adapter to forward messages from the given
messageSource to the given channel . |
OutboundEventMessageChannelAdapter(SubscribableMessageSource<EventMessage<?>> messageSource,
org.springframework.messaging.MessageChannel channel,
Predicate<? super EventMessage<?>> filter)
Initialize an adapter to forward messages from the given
messageSource to the given channel . |
OutboundEventMessageChannelAdapter(SubscribableMessageSource<EventMessage<?>> messageSource,
org.springframework.messaging.MessageChannel channel,
Predicate<? super EventMessage<?>> filter)
Initialize an adapter to forward messages from the given
messageSource to the given channel . |
OutboundEventMessageChannelAdapter(SubscribableMessageSource<EventMessage<?>> messageSource,
org.springframework.messaging.MessageChannel channel,
Predicate<? super EventMessage<?>> filter,
EventMessageConverter eventMessageConverter)
Initialize an adapter to forward messages from the given
messageSource to the given channel . |
OutboundEventMessageChannelAdapter(SubscribableMessageSource<EventMessage<?>> messageSource,
org.springframework.messaging.MessageChannel channel,
Predicate<? super EventMessage<?>> filter,
EventMessageConverter eventMessageConverter)
Initialize an adapter to forward messages from the given
messageSource to the given channel . |
Modifier and Type | Method and Description |
---|---|
List<EventMessage<?>> |
StubAggregateLifecycle.getAppliedEvents()
Returns the list of applied Events for this lifecycle instance.
|
Modifier and Type | Method and Description |
---|---|
ResultValidator<T> |
ResultValidatorImpl.expectEvents(EventMessage... expectedEvents) |
ResultValidator<T> |
ResultValidator.expectEvents(EventMessage... expectedEvents)
Expect the given set of events to have been published.
|
Modifier and Type | Method and Description |
---|---|
ResultValidator<T> |
ResultValidatorImpl.expectEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher) |
ResultValidator<T> |
ResultValidator.expectEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher)
Expect the published events to match the given
matcher . |
Constructor and Description |
---|
ResultValidatorImpl(List<EventMessage<?>> publishedEvents,
FieldFilter fieldFilter,
Supplier<Aggregate<T>> aggregateState,
StubDeadlineManager stubDeadlineManager)
Initialize the ResultValidatorImpl with the given
storedEvents and publishedEvents . |
Modifier and Type | Method and Description |
---|---|
EventMessage |
StubEventScheduler.advanceToNextTrigger()
Advances the "current time" of the scheduler to the next scheduled Event, and returns that event.
|
EventMessage |
ScheduledItem.getEvent()
The Event scheduled for publication.
|
EventMessage |
StubScheduleToken.getEvent() |
Modifier and Type | Method and Description |
---|---|
void |
StubEventScheduler.advanceTimeBy(Duration duration,
EventConsumer<EventMessage<?>> eventConsumer)
Advance time by the given
duration and invokes the given eventConsumer for each
event scheduled for publication until that time. |
void |
StubEventScheduler.advanceTimeTo(Instant newDateTime,
EventConsumer<EventMessage<?>> eventConsumer)
Advance time to the given
newDateTime and invokes the given eventConsumer for each
event scheduled for publication until that time. |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<List<EventMessage<?>>> |
Matchers.noEvents()
Matches an empty List of Events.
|
Modifier and Type | Method and Description |
---|---|
Object |
EventValidator.handle(EventMessage event) |
protected void |
SagaTestFixture.handleInSaga(EventMessage<?> event)
Handles the given
event in the scope of a Unit of Work. |
Modifier and Type | Method and Description |
---|---|
FixtureExecutionResult |
FixtureExecutionResult.expectPublishedEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher)
Assert that the saga published events on the EventBus as defined by the given
matcher . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectPublishedEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledEventMatching(Duration duration,
org.hamcrest.Matcher<? super EventMessage<?>> matcher)
Asserts that an event matching the given
matcher has been scheduled to be published after the given
duration . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledEventMatching(Duration duration,
org.hamcrest.Matcher<? super EventMessage<?>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledEventMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super EventMessage<?>> matcher)
Asserts that an event matching the given
matcher has been scheduled to be published at the given
scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledEventMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super EventMessage<?>> matcher) |
Copyright © 2010–2019. All rights reserved.