public interface DistributionQueue
DistributionPackage
s
exported by a DistributionAgent
in
order to be able to process them also when there are multiple (concurrent)
DistributionRequest
s executed
on that same agent.
The items (packages) in the queue can then get processed according to a FIFO
strategy or in parallel, or some other way, via DistributionQueueProcessor
s.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(java.lang.String itemId)
gets an item from the queue by specifying its id
|
java.lang.Iterable<DistributionQueueEntry> |
getItems(int skip,
int limit)
get all the items in the queue
|
java.lang.String |
getName()
get this queue name
|
DistributionQueueStatus |
getStatus()
get the status of the queue
|
DistributionQueueType |
getType()
get the type of this queue
|
DistributionQueueEntry |
remove(java.lang.String itemId)
remove an item from the queue by specifying its id
|
java.lang.String getName()
DistributionQueueEntry add(DistributionQueueItem item)
item
- a distribution item, typically representing a DistributionPackage
to distributenoll
if none is createdDistributionQueueEntry getHead()
null
if the queue is emptyjava.lang.Iterable<DistributionQueueEntry> getItems(int skip, int limit)
skip
- the number of items to skiplimit
- the maximum number of items to return. use -1 to return all items.Iterable
of DistributionQueueItem
sDistributionQueueEntry getItem(java.lang.String itemId)
itemId
- the id of the item as returned by DistributionQueueItem.getPackageId()
null
if the item with the given id
doesn't existDistributionQueueEntry remove(java.lang.String itemId)
itemId
- the id the item as returned by DistributionQueueItem.getPackageId()
null
if the item with the given id
doesn't existDistributionQueueStatus getStatus()
DistributionQueueType getType()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"