public interface DistributionQueueDispatchingStrategy
DistributionQueueDispatchingStrategy
implements an algorithm for dispatching
DistributionPackage
s 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 DistributionQueue s 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 DistributionQueue
s provided by the given DistributionQueueProvider
distributionPackage
- a DistributionPackage
to distributequeueProvider
- the DistributionQueueProvider
used to provide the queues to be used for the given packageIterable
of DistributionQueueItemStatus
s representing
the states of the DistributionQueueItem
s added to one or more DistributionQueue
sDistributionException
- if any internal error happens during distributionCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.