Interface EventSender

All Known Implementing Classes:
DirectEventSender, EnqueuingEventSender

public interface EventSender
Interface representing an asynchronous event sender.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Callable<Optional<org.alfresco.repo.event.v1.model.RepoEvent<?>>> eventProducer)
    Accepts a callback function creating an event and sends this event to specified destination.
    default void
    It's called when the bean instance is destroyed, allowing to perform cleanup operations.
    default void
    It's called right after event sender instantiation (see EventSenderFactoryBean).
    default boolean
     
  • Method Details

    • accept

      void accept(Callable<Optional<org.alfresco.repo.event.v1.model.RepoEvent<?>>> eventProducer)
      Accepts a callback function creating an event and sends this event to specified destination.
      Parameters:
      eventProducer - - callback function that creates an event
    • initialize

      default void initialize()
      It's called right after event sender instantiation (see EventSenderFactoryBean). It might be used to initialize the sender implementation.
    • destroy

      default void destroy()
      It's called when the bean instance is destroyed, allowing to perform cleanup operations.
    • shouldParticipateInTransaction

      default boolean shouldParticipateInTransaction()