Class DistributionQueueStatus
- java.lang.Object
-
- org.apache.sling.distribution.queue.DistributionQueueStatus
-
public final class DistributionQueueStatus extends java.lang.Object
The status of a certainDistributionQueue
-
-
Constructor Summary
Constructors Constructor Description DistributionQueueStatus(int itemsCount, @NotNull DistributionQueueState queueState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getItemsCount()
get the no.DistributionQueueState
getState()
get the state associated with the status of this queueboolean
isEmpty()
check if the queue is empty
-
-
-
Constructor Detail
-
DistributionQueueStatus
public DistributionQueueStatus(int itemsCount, @NotNull @NotNull DistributionQueueState queueState)
-
-
Method Detail
-
getItemsCount
public int getItemsCount()
get the no. of items in the queue- Returns:
- the no. of items in the queue
-
getState
public DistributionQueueState getState()
get the state associated with the status of this queue- Returns:
- a
DistributionQueueItemState
-
isEmpty
public boolean isEmpty()
check if the queue is empty- Returns:
true
if the queue is empty
-
-