public class SimpleDistributionQueueProvider extends Object implements DistributionQueueProvider
DistributionQueueProvider for simple in memory
DistributionQueues| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE |
static String |
TYPE_CHECKPOINT |
| Constructor and Description |
|---|
SimpleDistributionQueueProvider(org.apache.sling.commons.scheduler.Scheduler scheduler,
String name,
boolean checkpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableQueueProcessing()
disables queue processing
|
void |
enableQueueProcessing(@NotNull DistributionQueueProcessor queueProcessor,
String... queueNames)
enables queue processing
|
@NotNull DistributionQueue |
getQueue(@NotNull String queueName)
provide an
DistributionQueueType.ORDERED queue with the given name |
DistributionQueue |
getQueue(@NotNull String queueName,
@NotNull DistributionQueueType type)
provde a queue of the given type with the given name
|
public static final String TYPE
public static final String TYPE_CHECKPOINT
public SimpleDistributionQueueProvider(org.apache.sling.commons.scheduler.Scheduler scheduler,
String name,
boolean checkpoint)
@NotNull public @NotNull DistributionQueue getQueue(@NotNull @NotNull String queueName)
DistributionQueueProviderDistributionQueueType.ORDERED queue with the given namegetQueue in interface DistributionQueueProviderqueueName - the name of the queue to retrieveDistributionQueuepublic DistributionQueue getQueue(@NotNull @NotNull String queueName, @NotNull @NotNull DistributionQueueType type)
DistributionQueueProvidergetQueue in interface DistributionQueueProviderqueueName - the name of the queuetype - the type of the queueDistributionQueuepublic void enableQueueProcessing(@NotNull
@NotNull DistributionQueueProcessor queueProcessor,
String... queueNames)
DistributionQueueProviderenableQueueProcessing in interface DistributionQueueProviderqueueProcessor - the queue processor to be usedpublic void disableQueueProcessing()
DistributionQueueProviderdisableQueueProcessing in interface DistributionQueueProviderCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.