public class JobConsumerManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
JobConsumerManager.Config |
| Constructor and Description |
|---|
JobConsumerManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.framework.BundleContext bc,
JobConsumerManager.Config config) |
protected void |
bindJobConsumer(org.osgi.framework.ServiceReference<org.apache.sling.event.jobs.consumer.JobConsumer> serviceReference)
Bind a new consumer
|
protected void |
bindJobExecutor(org.osgi.framework.ServiceReference<org.apache.sling.event.jobs.consumer.JobExecutor> serviceReference)
Bind a new executor
|
protected void |
deactivate() |
org.apache.sling.event.jobs.consumer.JobExecutor |
getExecutor(String topic)
Get the executor for the topic.
|
String |
getTopics()
Return the topics information of this instance.
|
protected void |
modified(org.osgi.framework.BundleContext bc,
JobConsumerManager.Config config) |
void |
registerListener(String key,
org.apache.sling.event.jobs.consumer.JobExecutor consumer,
org.apache.sling.event.jobs.consumer.JobExecutionContext handler) |
protected void |
unbindJobConsumer(org.osgi.framework.ServiceReference<org.apache.sling.event.jobs.consumer.JobConsumer> serviceReference)
Unbind a consumer
|
protected void |
unbindJobExecutor(org.osgi.framework.ServiceReference<org.apache.sling.event.jobs.consumer.JobExecutor> serviceReference)
Unbind a executor
|
void |
unregisterListener(String key) |
protected void activate(org.osgi.framework.BundleContext bc,
JobConsumerManager.Config config)
protected void modified(org.osgi.framework.BundleContext bc,
JobConsumerManager.Config config)
protected void deactivate()
public org.apache.sling.event.jobs.consumer.JobExecutor getExecutor(String topic)
topic - The job topicnullpublic void registerListener(String key, org.apache.sling.event.jobs.consumer.JobExecutor consumer, org.apache.sling.event.jobs.consumer.JobExecutionContext handler)
public void unregisterListener(String key)
public String getTopics()
protected void bindJobConsumer(org.osgi.framework.ServiceReference<org.apache.sling.event.jobs.consumer.JobConsumer> serviceReference)
serviceReference - The service reference to the consumer.protected void unbindJobConsumer(org.osgi.framework.ServiceReference<org.apache.sling.event.jobs.consumer.JobConsumer> serviceReference)
serviceReference - The service reference to the consumer.protected void bindJobExecutor(org.osgi.framework.ServiceReference<org.apache.sling.event.jobs.consumer.JobExecutor> serviceReference)
serviceReference - The service reference to the executor.protected void unbindJobExecutor(org.osgi.framework.ServiceReference<org.apache.sling.event.jobs.consumer.JobExecutor> serviceReference)
serviceReference - The service reference to the executor.Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.