Class InternalQueueConfiguration
java.lang.Object
org.apache.sling.event.impl.jobs.config.InternalQueueConfiguration
- All Implemented Interfaces:
Comparable<InternalQueueConfiguration>,org.apache.sling.event.jobs.QueueConfiguration
public class InternalQueueConfiguration
extends Object
implements org.apache.sling.event.jobs.QueueConfiguration, Comparable<InternalQueueConfiguration>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.sling.event.jobs.QueueConfiguration
org.apache.sling.event.jobs.QueueConfiguration.ThreadPriority, org.apache.sling.event.jobs.QueueConfiguration.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(Map<String, Object> props, InternalQueueConfiguration.Config config) Create a new queue configurationintstatic InternalQueueConfigurationfromConfiguration(Map<String, Object> props, InternalQueueConfiguration.Config config) Create a new configuration from a configintintgetName()Return the name of the queue.intgetPid()intlongorg.apache.sling.event.jobs.QueueConfiguration.ThreadPriorityString[]org.apache.sling.event.jobs.QueueConfiguration.TypegetType()booleanbooleanbooleanisValid()Check if the queue processes the event.toString()
-
Constructor Details
-
InternalQueueConfiguration
public InternalQueueConfiguration()
-
-
Method Details
-
fromConfiguration
public static InternalQueueConfiguration fromConfiguration(Map<String, Object> props, InternalQueueConfiguration.Config config) Create a new configuration from a config -
activate
Create a new queue configuration -
isValid
public boolean isValid() -
match
Check if the queue processes the event.- Parameters:
topic- The topic of the event- Returns:
- The queue name or
null
-
getName
Return the name of the queue. -
getRetryDelayInMs
public long getRetryDelayInMs()- Specified by:
getRetryDelayInMsin interfaceorg.apache.sling.event.jobs.QueueConfiguration- See Also:
-
QueueConfiguration.getRetryDelayInMs()
-
getMaxRetries
public int getMaxRetries()- Specified by:
getMaxRetriesin interfaceorg.apache.sling.event.jobs.QueueConfiguration- See Also:
-
QueueConfiguration.getMaxRetries()
-
getType
public org.apache.sling.event.jobs.QueueConfiguration.Type getType()- Specified by:
getTypein interfaceorg.apache.sling.event.jobs.QueueConfiguration- See Also:
-
QueueConfiguration.getType()
-
getMaxParallel
public int getMaxParallel()- Specified by:
getMaxParallelin interfaceorg.apache.sling.event.jobs.QueueConfiguration- See Also:
-
QueueConfiguration.getMaxParallel()
-
getTopics
- Specified by:
getTopicsin interfaceorg.apache.sling.event.jobs.QueueConfiguration- See Also:
-
QueueConfiguration.getTopics()
-
getRanking
public int getRanking()- Specified by:
getRankingin interfaceorg.apache.sling.event.jobs.QueueConfiguration- See Also:
-
QueueConfiguration.getRanking()
-
getPid
-
isKeepJobs
public boolean isKeepJobs()- Specified by:
isKeepJobsin interfaceorg.apache.sling.event.jobs.QueueConfiguration
-
getOwnThreadPoolSize
public int getOwnThreadPoolSize()- Specified by:
getOwnThreadPoolSizein interfaceorg.apache.sling.event.jobs.QueueConfiguration
-
isPreferRunOnCreationInstance
public boolean isPreferRunOnCreationInstance()- Specified by:
isPreferRunOnCreationInstancein interfaceorg.apache.sling.event.jobs.QueueConfiguration
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<InternalQueueConfiguration>
-
getThreadPriority
public org.apache.sling.event.jobs.QueueConfiguration.ThreadPriority getThreadPriority()- Specified by:
getThreadPriorityin interfaceorg.apache.sling.event.jobs.QueueConfiguration
-