Class QueueConfigurationManager
java.lang.Object
org.apache.sling.event.impl.jobs.config.QueueConfigurationManager
The queue manager manages queue configurations.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
bindConfig
(InternalQueueConfiguration config) Add a new queue configuration.Return all configurations.Get the configuration for the main queue.getQueueInfo
(String topic) Find the queue configuration for the job.protected void
Remove a queue configuration.protected void
Update a queue configuration.
-
Constructor Details
-
QueueConfigurationManager
public QueueConfigurationManager()
-
-
Method Details
-
bindConfig
Add a new queue configuration.- Parameters:
config
- A new queue configuration.
-
unbindConfig
Remove a queue configuration.- Parameters:
config
- The queue configuration.
-
updateConfig
Update a queue configuration.- Parameters:
config
- The queue configuration.
-
getConfigurations
Return all configurations.- Returns:
- An array with all queue configurations except the main queue. Array might be empty.
-
getMainQueueConfiguration
Get the configuration for the main queue.- Returns:
- The configuration for the main queue.
-
getQueueInfo
Find the queue configuration for the job. This method only returns a configuration if one matches.
-