public class CachingDistributionQueue extends DistributionQueueWrapper
wrappedQueue
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()
returns the status of the queue
|
DistributionQueueEntry |
remove(String itemId)
remove an item from the queue by specifying its id
|
getHead, getItem, getItems, getName
public CachingDistributionQueue(String cacheKey, DistributionQueue wrappedQueue)
public DistributionQueueStatus getStatus()
DistributionQueue
getStatus
in interface DistributionQueue
getStatus
in class DistributionQueueWrapper
public DistributionQueueEntry add(@Nonnull DistributionQueueItem item)
DistributionQueue
add
in interface DistributionQueue
add
in class DistributionQueueWrapper
item
- a distribution item, typically representing a DistributionPackage
to distributenoll
if none is createdpublic DistributionQueueEntry remove(@Nonnull String itemId)
DistributionQueue
remove
in interface DistributionQueue
remove
in class DistributionQueueWrapper
itemId
- the id the itemnull
if the item with the given id
doesn't existCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.