public class ErrorQueueDispatchingStrategy extends Object implements DistributionQueueDispatchingStrategy
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_PREFIX |
DEFAULT_QUEUE_NAME| Constructor and Description |
|---|
ErrorQueueDispatchingStrategy(String[] queueNames) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<DistributionQueueItemStatus> |
add(DistributionPackage distributionPackage,
DistributionQueueProvider queueProvider)
synchronously distribute a
DistributionPackage
to one or more DistributionQueues provided by the given DistributionQueueProvider |
List<String> |
getQueueNames()
Returns the queue names available for this strategy.
|
public static final String ERROR_PREFIX
public ErrorQueueDispatchingStrategy(String[] queueNames)
public Iterable<DistributionQueueItemStatus> add(@Nonnull DistributionPackage distributionPackage, @Nonnull 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@Nonnull public List<String> getQueueNames()
DistributionQueueDispatchingStrategygetQueueNames in interface DistributionQueueDispatchingStrategyCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.