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() |
int |
getNumTasks() |
java.lang.Long |
getOldestEtaUsec()
Returns a recent estimate of the eta of the oldest non-completed task in the queue.
|
java.lang.String |
getQueueName() |
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()