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 theRepoEventobjects 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidpublishEvent(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 Detail
-
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.
-
-