public class QueueManager extends Object implements Runnable, org.osgi.service.event.EventHandler, ConfigurationChangeListener
| Constructor and Description |
|---|
QueueManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(Map<String,Object> props)
Activate this component.
|
protected void |
bindThreadPool(org.apache.sling.event.impl.EventingThreadPool etp) |
void |
configurationChanged(boolean active)
This method is called whenever the topology or queue configurations change.
|
protected void |
deactivate()
Deactivate this component.
|
org.apache.sling.event.jobs.Queue |
getQueue(String name) |
Iterable<org.apache.sling.event.jobs.Queue> |
getQueues() |
void |
handleEvent(org.osgi.service.event.Event event) |
void |
run()
This method is invoked periodically by the scheduler.
|
protected void |
unbindThreadPool(org.apache.sling.event.impl.EventingThreadPool etp) |
protected void activate(Map<String,Object> props)
props - Configuration propertiesprotected void deactivate()
public void run()
run in interface RunnableRunnable.run()public org.apache.sling.event.jobs.Queue getQueue(String name)
name - The queue namenull.JobManager.getQueue(java.lang.String)public Iterable<org.apache.sling.event.jobs.Queue> getQueues()
JobManager.getQueues()public void configurationChanged(boolean active)
configurationChanged in interface ConfigurationChangeListeneractive - Whether the job handling is active atm.public void handleEvent(org.osgi.service.event.Event event)
handleEvent in interface org.osgi.service.event.EventHandlerEventHandler.handleEvent(org.osgi.service.event.Event)protected void bindThreadPool(org.apache.sling.event.impl.EventingThreadPool etp)
protected void unbindThreadPool(org.apache.sling.event.impl.EventingThreadPool etp)
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.