Class OutboxEventExternalizer
java.lang.Object
org.springframework.modulith.events.support.EventExternalizerSupport
org.springframework.modulith.events.support.TransportAwareEventExternalizer
org.springframework.modulith.events.support.OutboxEventExternalizer
An
OutboxEventExternalizer that transports events from the outbox to an external target.
This handler is invoked by the outbox processor to externalize events that were previously recorded in the outbox table. It uses the configured transport function to deliver events to their target destination (e.g., message broker, email, SMS).
- Since:
- 2.1
- Author:
- Roland Beisel, Oliver Drotbohm
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOutboxEventExternalizer(EventExternalizationConfiguration configuration, ApplicationEventPublisher publisher, EventExternalizationTransport transport) Creates a newOutboxEventExternalizerfor the givenEventExternalizationConfigurationand transport function. -
Method Summary
Methods inherited from class org.springframework.modulith.events.support.TransportAwareEventExternalizer
externalize
-
Constructor Details
-
OutboxEventExternalizer
public OutboxEventExternalizer(EventExternalizationConfiguration configuration, ApplicationEventPublisher publisher, EventExternalizationTransport transport) Creates a newOutboxEventExternalizerfor the givenEventExternalizationConfigurationand transport function.- Parameters:
configuration- must not be null.publisher- must not be null.
-
-
Method Details
-
externalize
Description copied from class:EventExternalizerSupportExternalizes the given event.- Overrides:
externalizein classEventExternalizerSupport- Parameters:
event- must not be null.- Returns:
- the externalization result, will never be null.
-