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 aDistributionQueue
This is basically a proxy toDistributionPackage
designed to avoid having to keep the packagestream
into 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.String
getPackageId()
long
getSize()
retrieve the size of the package referenced by this queue item.java.lang.String
toString()
-
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
-1
if not available.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classValueMapDecorator
-
-