use of org.apache.sling.distribution.queue.impl.SimpleAgentDistributionQueue in project sling by apache.
the class SimpleDistributionAgent method getQueue.
public DistributionQueue getQueue(@Nonnull final String queueName) {
Set<String> queues = getQueueNames();
if (!queues.contains(queueName)) {
return null;
}
DistributionQueue queue = null;
try {
queue = queueProvider.getQueue(queueName);
} catch (DistributionException e) {
log.error("cannot get queue", e);
}
if (queue != null) {
boolean isPausedQueue = !queueProcessingEnabled && (processingQueues != null && processingQueues.contains(queueName));
queue = new SimpleAgentDistributionQueue(queue, isPausedQueue, name);
}
return queue;
}
Aggregations