public interface DistributionTrigger
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.| Modifier and Type | Method and Description |
|---|---|
void |
register(DistributionRequestHandler requestHandler)
register a request handler to be triggered and returns a corresponding registration id
|
void |
unregister(DistributionRequestHandler requestHandler)
unregister the given handler, if existing
|
void register(@Nonnull DistributionRequestHandler requestHandler) throws DistributionException
requestHandler - handlerDistributionException - if registration failsvoid unregister(@Nonnull DistributionRequestHandler requestHandler) throws DistributionException
requestHandler - handler to unregisterDistributionException - if any error happenCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.