public interface DistributionTrigger
DistributionTrigger
is responsible to trigger
DistributionRequest
s 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(@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
|
void register(@NotNull @NotNull DistributionRequestHandler requestHandler) throws DistributionException
requestHandler
- handlerDistributionException
- if registration failsvoid unregister(@NotNull @NotNull DistributionRequestHandler requestHandler) throws DistributionException
requestHandler
- handler to unregisterDistributionException
- if any error happenCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.