Class DistributionQueueItem

java.lang.Object
org.apache.sling.api.wrappers.ValueMapDecorator
org.apache.sling.distribution.queue.DistributionQueueItem
All Implemented Interfaces:
Map<String,Object>, ValueMap

public final class DistributionQueueItem extends ValueMapDecorator implements ValueMap
An item in a DistributionQueue This is basically a proxy to DistributionPackage designed to avoid having to keep the package stream into the queues.
  • Constructor Details

    • DistributionQueueItem

      public DistributionQueueItem(@NotNull @NotNull String packageId, Map<String,Object> base)
    • DistributionQueueItem

      public DistributionQueueItem(String packageId, long size, Map<String,Object> base)
  • Method Details

    • 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 -1 if not available.
    • toString

      public String toString()
      Overrides:
      toString in class ValueMapDecorator