Interface DistributionTrigger


@ConsumerType public interface DistributionTrigger
A DistributionTrigger is responsible to trigger DistributionRequests upon certain 'events' (e.g. Sling / Jcr events, periodic pulling, etc.). A DistributionTrigger is meant to be stateless so that more than one DistributionRequestHandler can be registered into the same trigger.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    register(@NotNull DistributionRequestHandler requestHandler)
    register a request handler to be triggered and returns a corresponding registration id
    void
    unregister(@NotNull DistributionRequestHandler requestHandler)
    unregister the given handler, if existing