public final class QueueStatistics
extends java.lang.Object
QueueStatistics allow 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.| Modifier and Type | Method and Description |
|---|---|
double |
getEnforcedRate()
Returns the maximum number of tasks per second being run by this queue.
|
long |
getExecutedLastMinute()
Returns the number of tasks executed in the last minute.
|
int |
getNumTasks()
Returns the approximate number of non-completed tasks in the queue.
|
java.lang.Long |
getOldestEtaUsec()
Returns a recent estimate of the eta of the oldest non-completed task in the queue.
|
java.lang.String |
getQueueName()
Returns the name of the
Queue. |
int |
getRequestsInFlight()
The number of requests that the queue has sent but not yet received a reply for.
|
public java.lang.String getQueueName()
Queue.public int getNumTasks()
public java.lang.Long getOldestEtaUsec()
null if there were
no non-completed tasks found in the queue.public long getExecutedLastMinute()
public int getRequestsInFlight()
public double getEnforcedRate()