org.apache.sling.event.jobs
Interface QueueConfiguration

All Known Implementing Classes:
InternalQueueConfiguration

public interface QueueConfiguration

The configuration of a queue.

Since:
3.0

Nested Class Summary
static class QueueConfiguration.Type
          The queue type.
 
Method Summary
 java.lang.String[] getApplicationIds()
          Application ids - returns an array of application ids if this queue is bound to some cluster nodes.
 int getMaxParallel()
          Return the max number of parallel processes.
 int getMaxRetries()
          Return the max number of retries, -1 for endless retry!
 JobUtil.JobPriority getPriority()
          Return the thread priority for the job thread.
 int getRanking()
          Get the ranking of this configuration.
 long getRetryDelayInMs()
          Return the retry delay in ms
 java.lang.String[] getTopics()
          The list of topics this queue is bound to.
 QueueConfiguration.Type getType()
          Return the queue type.
 boolean isLocalQueue()
          Is this a local running queue (= processing only jobs started on the same instance.)
 

Method Detail

getRetryDelayInMs

long getRetryDelayInMs()
Return the retry delay in ms


getMaxRetries

int getMaxRetries()
Return the max number of retries, -1 for endless retry!


getType

QueueConfiguration.Type getType()
Return the queue type.


getPriority

JobUtil.JobPriority getPriority()
Return the thread priority for the job thread.


getMaxParallel

int getMaxParallel()
Return the max number of parallel processes.


isLocalQueue

boolean isLocalQueue()
Is this a local running queue (= processing only jobs started on the same instance.)


getApplicationIds

java.lang.String[] getApplicationIds()
Application ids - returns an array of application ids if this queue is bound to some cluster nodes.


getTopics

java.lang.String[] getTopics()
The list of topics this queue is bound to.


getRanking

int getRanking()
Get the ranking of this configuration.



Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.