public class CachingDistributionQueue extends DistributionQueueWrapper
DistributionQueueWrapper that caches entries for 30s.| Constructor and Description |
|---|
CachingDistributionQueue(String cacheKey,
DistributionQueue wrappedQueue) |
| Modifier and Type | Method and Description |
|---|---|
DistributionQueueEntry |
add(DistributionQueueItem item)
add a distribution item to this queue
|
DistributionQueueStatus |
getStatus()
get the status of the queue
|
DistributionQueueType |
getType()
get the type of this queue
|
DistributionQueueEntry |
remove(String itemId)
remove an item from the queue by specifying its id
|
getHead, getItem, getItems, getNamepublic CachingDistributionQueue(String cacheKey, DistributionQueue wrappedQueue)
@Nonnull public DistributionQueueStatus getStatus()
DistributionQueuegetStatus in interface DistributionQueuegetStatus in class DistributionQueueWrapperpublic DistributionQueueType getType()
DistributionQueuepublic DistributionQueueEntry add(@Nonnull DistributionQueueItem item)
DistributionQueueadd in interface DistributionQueueadd in class DistributionQueueWrapperitem - a distribution item, typically representing a DistributionPackage
to distributenoll if none is createdpublic DistributionQueueEntry remove(@Nonnull String itemId)
DistributionQueueremove in interface DistributionQueueremove in class DistributionQueueWrapperitemId - the id the item as returned by DistributionQueueItem.getPackageId()null if the item with the given id
doesn't existCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.