Interface SubscriptionPublisher

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SubscriptionPublisher
The subscription publisher is the component in charge of publishing the RepoEvent objects to the corresponding channels. The definition of what a channel is will depend on each specific implementation of this interface (i.e. a JMS topic, a webhook or a web socket).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    publishEvent(org.alfresco.repo.event.v1.model.RepoEvent<org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.Resource>> event)
    Publish a RepoEvent.
    default void
    Method invoked when the publication resources must be release.
  • Method Details

    • publishEvent

      void publishEvent(org.alfresco.repo.event.v1.model.RepoEvent<org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.Resource>> event)
      Publish a RepoEvent.
      Parameters:
      event - the RepoEvent to be published
    • release

      default void release()
      Method invoked when the publication resources must be release. This method is called when the subscription that is using it is cancelled/removed.