public interface DistributionQueueDispatchingStrategy
DistributionQueueDispatchingStrategy implements an algorithm for dispatching
DistributionPackages among the available queues.
Usually a DistributionPackage will be dispatched to a single DistributionQueue
but it would also be possible to dispatch the same package to multiple queues, resulting in obtaining multiple states
(one for each queue) for a certain package.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_QUEUE_NAME |
| 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 |
@NotNull List<String> |
getQueueNames()
Returns the queue names available for this strategy.
|
static final String DEFAULT_QUEUE_NAME
Iterable<DistributionQueueItemStatus> add(@NotNull @NotNull DistributionPackage distributionPackage, @NotNull @NotNull DistributionQueueProvider queueProvider) throws DistributionException
DistributionPackage
to one or more DistributionQueues provided by the given DistributionQueueProviderdistributionPackage - 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 distributionCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.