Class EventExternalizationSupport

java.lang.Object
org.springframework.modulith.events.support.EventExternalizationSupport
All Implemented Interfaces:
ConditionalEventListener
Direct Known Subclasses:
DelegatingEventExternalizer

@Deprecated(since="2.1", forRemoval=true) abstract class EventExternalizationSupport extends Object implements ConditionalEventListener
Deprecated, for removal: This API element is subject to removal in a future version.
Fundamental support for event externalization. Considers the configured EventExternalizationConfiguration before handing off the ultimate message publication to externalize(Object, RoutingTarget).
Since:
1.1
Author:
Oliver Drotbohm
  • Constructor Details

  • Method Details

    • supports

      public boolean supports(Object event)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ConditionalEventListener
      Returns whether the given event instance is supported by the listener.
      Specified by:
      supports in interface ConditionalEventListener
      Parameters:
      event - must not be null.
      Returns:
      whether the given event instance is supported by the listener.
    • externalize

      public CompletableFuture<?> externalize(Object event)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Externalizes the given event.
      Parameters:
      event - must not be null.
      Returns:
      the externalization result, will never be null.
    • externalize

      protected abstract CompletableFuture<?> externalize(Object payload, RoutingTarget target)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Publish the given payload to the given RoutingTarget.
      Parameters:
      payload - must not be null.
      target - must not be null.
      Returns:
      the externalization result, will never be null.