Class DistributionQueueItem
- java.lang.Object
 - 
- org.apache.sling.api.wrappers.ValueMapDecorator
 - 
- org.apache.sling.distribution.queue.DistributionQueueItem
 
 
 
- 
- All Implemented Interfaces:
 java.util.Map<java.lang.String,java.lang.Object>,ValueMap
public final class DistributionQueueItem extends ValueMapDecorator implements ValueMap
An item in aDistributionQueueThis is basically a proxy toDistributionPackagedesigned to avoid having to keep the packagestreaminto the queues. 
- 
- 
Constructor Summary
Constructors Constructor Description DistributionQueueItem(@NotNull java.lang.String packageId, java.util.Map<java.lang.String,java.lang.Object> base)DistributionQueueItem(java.lang.String packageId, long size, java.util.Map<java.lang.String,java.lang.Object> base) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.StringgetPackageId()longgetSize()retrieve the size of the package referenced by this queue item.java.lang.StringtoString()- 
Methods inherited from class org.apache.sling.api.wrappers.ValueMapDecorator
clear, containsKey, containsValue, entrySet, equals, get, get, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
DistributionQueueItem
public DistributionQueueItem(@NotNull @NotNull java.lang.String packageId, java.util.Map<java.lang.String,java.lang.Object> base) 
- 
DistributionQueueItem
public DistributionQueueItem(java.lang.String packageId, long size, java.util.Map<java.lang.String,java.lang.Object> base) 
 - 
 
- 
Method Detail
- 
getPackageId
@NotNull public @NotNull java.lang.String getPackageId()
 
- 
getSize
public long getSize()
retrieve the size of the package referenced by this queue item.- Returns:
 - the size of the underlying package or 
-1if not available. 
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classValueMapDecorator
 
 - 
 
 -