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 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
activate
(Map<String, Object> props, InternalQueueConfiguration.Config config) Create a new queue configurationint
static InternalQueueConfiguration
fromConfiguration
(Map<String, Object> props, InternalQueueConfiguration.Config config) Create a new configuration from a configint
int
getName()
Return the name of the queue.int
getPid()
int
long
org.apache.sling.event.jobs.QueueConfiguration.ThreadPriority
String[]
org.apache.sling.event.jobs.QueueConfiguration.Type
getType()
boolean
boolean
boolean
isValid()
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:
getRetryDelayInMs
in interfaceorg.apache.sling.event.jobs.QueueConfiguration
- See Also:
-
QueueConfiguration.getRetryDelayInMs()
-
getMaxRetries
public int getMaxRetries()- Specified by:
getMaxRetries
in interfaceorg.apache.sling.event.jobs.QueueConfiguration
- See Also:
-
QueueConfiguration.getMaxRetries()
-
getType
public org.apache.sling.event.jobs.QueueConfiguration.Type getType()- Specified by:
getType
in interfaceorg.apache.sling.event.jobs.QueueConfiguration
- See Also:
-
QueueConfiguration.getType()
-
getMaxParallel
public int getMaxParallel()- Specified by:
getMaxParallel
in interfaceorg.apache.sling.event.jobs.QueueConfiguration
- See Also:
-
QueueConfiguration.getMaxParallel()
-
getTopics
- Specified by:
getTopics
in interfaceorg.apache.sling.event.jobs.QueueConfiguration
- See Also:
-
QueueConfiguration.getTopics()
-
getRanking
public int getRanking()- Specified by:
getRanking
in interfaceorg.apache.sling.event.jobs.QueueConfiguration
- See Also:
-
QueueConfiguration.getRanking()
-
getPid
-
isKeepJobs
public boolean isKeepJobs()- Specified by:
isKeepJobs
in interfaceorg.apache.sling.event.jobs.QueueConfiguration
-
getOwnThreadPoolSize
public int getOwnThreadPoolSize()- Specified by:
getOwnThreadPoolSize
in interfaceorg.apache.sling.event.jobs.QueueConfiguration
-
isPreferRunOnCreationInstance
public boolean isPreferRunOnCreationInstance()- Specified by:
isPreferRunOnCreationInstance
in interfaceorg.apache.sling.event.jobs.QueueConfiguration
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<InternalQueueConfiguration>
-
getThreadPriority
public org.apache.sling.event.jobs.QueueConfiguration.ThreadPriority getThreadPriority()- Specified by:
getThreadPriority
in interfaceorg.apache.sling.event.jobs.QueueConfiguration
-