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.
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 TypeMethodDescriptionvoidpublishEvent(org.alfresco.repo.event.v1.model.RepoEvent<org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.Resource>> event) Publish aRepoEvent.default voidrelease()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 aRepoEvent.- Parameters:
event- theRepoEventto 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.
-