Class QueueStatistics
- java.lang.Object
-
- com.google.appengine.api.taskqueue.QueueStatistics
-
public final class QueueStatistics extends Object
QueueStatisticsallow observation of the rate that tasks on a given queue are being executed. Note that statistics provided are only approximate, and some statistics may be delayed or transiently unavailable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetEnforcedRate()Returns the maximum number of tasks per second being run by this queue.longgetExecutedLastMinute()Returns the number of tasks executed in the last minute.intgetNumTasks()Returns the approximate number of non-completed tasks in the queue.LonggetOldestEtaUsec()Returns a recent estimate of the eta of the oldest non-completed task in the queue.StringgetQueueName()Returns the name of theQueue.intgetRequestsInFlight()The number of requests that the queue has sent but not yet received a reply for.
-
-
-
Method Detail
-
getNumTasks
public int getNumTasks()
Returns the approximate number of non-completed tasks in the queue.
-
getOldestEtaUsec
public Long getOldestEtaUsec()
Returns a recent estimate of the eta of the oldest non-completed task in the queue.- Returns:
- The eta of the oldest non-completed task for the queue, or
nullif there were no non-completed tasks found in the queue.
-
getExecutedLastMinute
public long getExecutedLastMinute()
Returns the number of tasks executed in the last minute.
-
getRequestsInFlight
public int getRequestsInFlight()
The number of requests that the queue has sent but not yet received a reply for.- Returns:
- The number of tasks currently in flight.
-
getEnforcedRate
public double getEnforcedRate()
Returns the maximum number of tasks per second being run by this queue.- Returns:
- The enforced rate in tasks per second.
-
-