public abstract class DistributionQueueWrapper extends Object implements DistributionQueue
| Modifier and Type | Method and Description |
|---|---|
DistributionQueueEntry |
add(DistributionQueueItem item)
add a distribution item to this queue
|
DistributionQueueEntry |
getHead()
get the first item (in a FIFO strategy, the next to be processed) from the queue
|
DistributionQueueEntry |
getItem(String itemId)
gets an item from the queue by specifying its id
|
Iterable<DistributionQueueEntry> |
getItems(int skip,
int limit)
get all the items in the queue
|
String |
getName()
get this queue name
|
DistributionQueueStatus |
getStatus()
get the status of the queue
|
DistributionQueueEntry |
remove(String itemId)
remove an item from the queue by specifying its id
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetType@Nonnull public String getName()
DistributionQueuegetName in interface DistributionQueuepublic DistributionQueueEntry add(@Nonnull DistributionQueueItem item)
DistributionQueueadd in interface DistributionQueueitem - a distribution item, typically representing a DistributionPackage
to distributenoll if none is createdpublic DistributionQueueEntry getHead()
DistributionQueuegetHead in interface DistributionQueuenull if the queue is empty@Nonnull public Iterable<DistributionQueueEntry> getItems(int skip, int limit)
DistributionQueuegetItems in interface DistributionQueueskip - the number of items to skiplimit - the maximum number of items to return. use -1 to return all items.Iterable of DistributionQueueItemspublic DistributionQueueEntry getItem(@Nonnull String itemId)
DistributionQueuegetItem in interface DistributionQueueitemId - the id of the item as returned by DistributionQueueItem.getPackageId()null if the item with the given id
doesn't existpublic DistributionQueueEntry remove(@Nonnull String itemId)
DistributionQueueremove in interface DistributionQueueitemId - the id the item as returned by DistributionQueueItem.getPackageId()null if the item with the given id
doesn't exist@Nonnull public DistributionQueueStatus getStatus()
DistributionQueuegetStatus in interface DistributionQueueCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.