public class DistributionEventDistributeDistributionTrigger extends Object implements DistributionTrigger
DistributionTrigger
for chain distribution upon a certain DistributionEventTopics
Constructor and Description |
---|
DistributionEventDistributeDistributionTrigger(String pathPrefix,
org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
void |
disable() |
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
|
public DistributionEventDistributeDistributionTrigger(String pathPrefix, org.osgi.framework.BundleContext bundleContext)
public void register(@NotNull @NotNull DistributionRequestHandler requestHandler) throws DistributionException
DistributionTrigger
register
in interface DistributionTrigger
requestHandler
- handlerDistributionException
- if registration failspublic void unregister(@NotNull @NotNull DistributionRequestHandler requestHandler) throws DistributionException
DistributionTrigger
unregister
in interface DistributionTrigger
requestHandler
- handler to unregisterDistributionException
- if any error happenpublic void disable()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.