Class DistributionQueueItem
java.lang.Object
org.apache.sling.api.wrappers.ValueMapDecorator
org.apache.sling.distribution.queue.DistributionQueueItem
An item in a
DistributionQueue
This is basically a proxy to DistributionPackage designed to avoid having
to keep the package stream into
the queues.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDistributionQueueItem(@NotNull String packageId, Map<String, Object> base) DistributionQueueItem(String packageId, long size, Map<String, Object> base) -
Method Summary
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, valuesMethods 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
-
Constructor Details
-
DistributionQueueItem
-
DistributionQueueItem
-
-
Method Details
-
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
- Overrides:
toStringin classValueMapDecorator
-