@Service(value=MainQueueConfiguration.class) @Properties(value={@Property(name="queue.priority",value="NORM",options={@PropertyOption(name="NORM",value="Norm"),@PropertyOption(name="MIN",value="Min"),@PropertyOption(name="MAX",value="Max")},label="Priority",description="The priority for the threads used by this queue. Default is norm."),@Property(name="queue.retries",intValue=10,label="Maximum Retries",description="The maximum number of times a failed job slated for retries is actually retried. If a job has been retried this number of times and still fails, it is not rescheduled and assumed to have failed. The default value is 10."),@Property(name="queue.retrydelay",longValue=2000L,label="Retry Delay",description="The number of milliseconds to sleep between two consecutive retries of a job which failed and was set to be retried. The default value is 2 seconds. This value is only relevant if there is a single failed job in the queue. If there are multiple failed jobs, each job is retried in turn without an intervening delay."),@Property(name="queue.maxparallel",intValue=15,label="Maximum Parallel Jobs",description="The maximum number of parallel jobs started for this queue. A value of -1 is substituted with the number of available processors.")}) public class MainQueueConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MAIN_QUEUE_NAME |
Constructor and Description |
---|
MainQueueConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(Map<String,Object> props)
Activate this component.
|
InternalQueueConfiguration |
getMainConfiguration()
Return the main queue configuration object.
|
protected void |
update(Map<String,Object> props)
Configure this component.
|
public static final String MAIN_QUEUE_NAME
@Activate protected void activate(Map<String,Object> props)
props
- Configuration properties@Modified protected void update(Map<String,Object> props)
props
- Configuration propertiespublic InternalQueueConfiguration getMainConfiguration()
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.