public class InternalQueueConfiguration extends Object implements org.apache.sling.event.jobs.QueueConfiguration, Comparable<InternalQueueConfiguration>
| Modifier and Type | Class and Description |
|---|---|
static interface |
InternalQueueConfiguration.Config |
| Constructor and Description |
|---|
InternalQueueConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(Map<String,Object> props,
InternalQueueConfiguration.Config config)
Create a new queue configuration
|
int |
compareTo(InternalQueueConfiguration other) |
static InternalQueueConfiguration |
fromConfiguration(Map<String,Object> props,
InternalQueueConfiguration.Config config)
Create a new configuration from a config
|
int |
getMaxParallel() |
int |
getMaxRetries() |
String |
getName()
Return the name of the queue.
|
int |
getOwnThreadPoolSize() |
String |
getPid() |
int |
getRanking() |
long |
getRetryDelayInMs() |
org.apache.sling.event.jobs.QueueConfiguration.ThreadPriority |
getThreadPriority() |
String[] |
getTopics() |
org.apache.sling.event.jobs.QueueConfiguration.Type |
getType() |
boolean |
isKeepJobs() |
boolean |
isPreferRunOnCreationInstance() |
boolean |
isValid() |
String |
match(String topic)
Check if the queue processes the event.
|
String |
toString() |
public static InternalQueueConfiguration fromConfiguration(Map<String,Object> props, InternalQueueConfiguration.Config config)
protected void activate(Map<String,Object> props, InternalQueueConfiguration.Config config)
public boolean isValid()
public String match(String topic)
topic - The topic of the eventnullpublic String getName()
public long getRetryDelayInMs()
getRetryDelayInMs in interface org.apache.sling.event.jobs.QueueConfigurationQueueConfiguration.getRetryDelayInMs()public int getMaxRetries()
getMaxRetries in interface org.apache.sling.event.jobs.QueueConfigurationQueueConfiguration.getMaxRetries()public org.apache.sling.event.jobs.QueueConfiguration.Type getType()
getType in interface org.apache.sling.event.jobs.QueueConfigurationQueueConfiguration.getType()public int getMaxParallel()
getMaxParallel in interface org.apache.sling.event.jobs.QueueConfigurationQueueConfiguration.getMaxParallel()public String[] getTopics()
getTopics in interface org.apache.sling.event.jobs.QueueConfigurationQueueConfiguration.getTopics()public int getRanking()
getRanking in interface org.apache.sling.event.jobs.QueueConfigurationQueueConfiguration.getRanking()public String getPid()
public boolean isKeepJobs()
isKeepJobs in interface org.apache.sling.event.jobs.QueueConfigurationpublic int getOwnThreadPoolSize()
getOwnThreadPoolSize in interface org.apache.sling.event.jobs.QueueConfigurationpublic boolean isPreferRunOnCreationInstance()
isPreferRunOnCreationInstance in interface org.apache.sling.event.jobs.QueueConfigurationpublic int compareTo(InternalQueueConfiguration other)
compareTo in interface Comparable<InternalQueueConfiguration>public org.apache.sling.event.jobs.QueueConfiguration.ThreadPriority getThreadPriority()
getThreadPriority in interface org.apache.sling.event.jobs.QueueConfigurationCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.