public class PriorityQueueDispatchingStrategy extends Object implements DistributionQueueDispatchingStrategy
DEFAULT_QUEUE_NAME| Constructor and Description |
|---|
PriorityQueueDispatchingStrategy(Map<String,String> selectors,
String[] queueNames) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<DistributionQueueItemStatus> |
add(@NotNull DistributionPackage distributionPackage,
@NotNull DistributionQueueProvider queueProvider)
synchronously distribute a
DistributionPackage
to one or more DistributionQueues provided by the given DistributionQueueProvider |
Map<String,String> |
getMatchingQueues(String[] paths) |
@NotNull List<String> |
getQueueNames()
Returns the queue names available for this strategy.
|
public Iterable<DistributionQueueItemStatus> add(@NotNull @NotNull DistributionPackage distributionPackage, @NotNull @NotNull DistributionQueueProvider queueProvider) throws DistributionException
DistributionQueueDispatchingStrategyDistributionPackage
to one or more DistributionQueues provided by the given DistributionQueueProvideradd in interface DistributionQueueDispatchingStrategydistributionPackage - a DistributionPackage to distributequeueProvider - the DistributionQueueProvider used to provide the queues to be used for the given packageIterable of DistributionQueueItemStatuss representing
the states of the DistributionQueueItems added to one or more DistributionQueuesDistributionException - if any internal error happens during distribution@NotNull public @NotNull List<String> getQueueNames()
DistributionQueueDispatchingStrategygetQueueNames in interface DistributionQueueDispatchingStrategyCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.