public abstract class DistributionQueueWrapper extends Object implements DistributionQueue
| Modifier and Type | Method and Description |
|---|---|
DistributionQueueEntry |
add(@NotNull DistributionQueueItem item)
add a distribution item to this queue
|
@NotNull Iterable<DistributionQueueEntry> |
clear(int limit)
Clear a range of entries from the queue.
|
@NotNull Iterable<DistributionQueueEntry> |
getEntries(int skip,
int limit)
get all the entries in the queue
|
DistributionQueueEntry |
getEntry(@NotNull String itemId)
gets an entry from the queue by specifying its id
|
DistributionQueueEntry |
getHead()
get the first entry (in a FIFO strategy, the next to be processed) from the queue
|
@NotNull String |
getName()
get this queue name
|
@NotNull DistributionQueueStatus |
getStatus()
get the status of the queue
|
boolean |
hasCapability(@NotNull String capability) |
@NotNull Iterable<DistributionQueueEntry> |
remove(@NotNull Set<String> entryIds)
Remove a set entries from the queue by specifying their identifiers.
|
DistributionQueueEntry |
remove(@NotNull String itemId)
remove an entry from the queue by specifying its id
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetType@NotNull public @NotNull String getName()
DistributionQueuegetName in interface DistributionQueuepublic DistributionQueueEntry add(@NotNull @NotNull 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@NotNull public @NotNull Iterable<DistributionQueueEntry> getEntries(int skip, int limit)
DistributionQueuegetEntries in interface DistributionQueueskip - the number of entries to skiplimit - the maximum number of entries to return. use -1 to return all entries.Iterable of DistributionQueueEntry entriespublic DistributionQueueEntry getEntry(@NotNull @NotNull String itemId)
DistributionQueuegetEntry in interface DistributionQueueitemId - the entry identifiernull if the entry with the given id
doesn't existpublic DistributionQueueEntry remove(@NotNull @NotNull String itemId)
DistributionQueueremove in interface DistributionQueueitemId - the entry identifiernull if the entry with the given id
doesn't exist@NotNull public @NotNull DistributionQueueStatus getStatus()
DistributionQueuegetStatus in interface DistributionQueue@NotNull public @NotNull Iterable<DistributionQueueEntry> remove(@NotNull @NotNull Set<String> entryIds)
DistributionQueueremove in interface DistributionQueueentryIds - The identifiers of the entries to be removed@NotNull public @NotNull Iterable<DistributionQueueEntry> clear(int limit)
DistributionQueueclear in interface DistributionQueuelimit - The maximum number of entries to remove. All entries
are removed when the limit is -1.public boolean hasCapability(@NotNull
@NotNull String capability)
hasCapability in interface DistributionQueuetrue if the queue supports the capability ;
false otherwiseCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.