Class DistributionQueueItem
- java.lang.Object
-
- org.apache.sling.api.wrappers.ValueMapDecorator
-
- org.apache.sling.distribution.queue.DistributionQueueItem
-
public final class DistributionQueueItem extends org.apache.sling.api.wrappers.ValueMapDecorator implements org.apache.sling.api.resource.ValueMapAn item in aDistributionQueueThis is basically a proxy toDistributionPackagedesigned to avoid having to keep the packagestreaminto the queues.
-
-
Constructor Summary
Constructors Constructor Description DistributionQueueItem(@NotNull String packageId, Map<String,Object> base)DistributionQueueItem(String packageId, long size, Map<String,Object> base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull StringgetPackageId()longgetSize()retrieve the size of the package referenced by this queue item.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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
getPackageId
@NotNull public @NotNull 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 String toString()
- Overrides:
toStringin classorg.apache.sling.api.wrappers.ValueMapDecorator
-
-