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(@NotNull DistributionQueueItem item)
add a distribution item to this queue
|
@NotNull DistributionQueueStatus |
getStatus()
get the status of the queue
|
@NotNull DistributionQueueType |
getType()
get the type of this queue
|
DistributionQueueEntry |
remove(@NotNull String itemId)
remove an entry from the queue by specifying its id
|
clear, getEntries, getEntry, getHead, getName, hasCapability, removepublic CachingDistributionQueue(String cacheKey, DistributionQueue wrappedQueue)
@NotNull public @NotNull DistributionQueueStatus getStatus()
DistributionQueuegetStatus in interface DistributionQueuegetStatus in class DistributionQueueWrapper@NotNull public @NotNull DistributionQueueType getType()
DistributionQueuepublic DistributionQueueEntry add(@NotNull @NotNull DistributionQueueItem item)
DistributionQueueadd in interface DistributionQueueadd in class DistributionQueueWrapperitem - a distribution item, typically representing a DistributionPackage
to distributenoll if none is createdpublic DistributionQueueEntry remove(@NotNull @NotNull String itemId)
DistributionQueueremove in interface DistributionQueueremove in class DistributionQueueWrapperitemId - the entry identifiernull if the entry with the given id
doesn't existCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.