public final class QueueStatistics
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.
Methods
getEnforcedRate()
public double getEnforcedRate()
Returns the maximum number of tasks per second being run by this queue.
Returns | |
---|---|
Type | Description |
double |
The enforced rate in tasks per second. |
getExecutedLastMinute()
public long getExecutedLastMinute()
Returns the number of tasks executed in the last minute.
Returns | |
---|---|
Type | Description |
long |
getNumTasks()
public int getNumTasks()
Returns the approximate number of non-completed tasks in the queue.
Returns | |
---|---|
Type | Description |
int |
getOldestEtaUsec()
public Long getOldestEtaUsec()
Returns a recent estimate of the eta of the oldest non-completed task in the queue.
Returns | |
---|---|
Type | Description |
Long |
The eta of the oldest non-completed task for the queue, or |
getQueueName()
public String getQueueName()
Returns the name of the Queue.
Returns | |
---|---|
Type | Description |
String |
getRequestsInFlight()
public int getRequestsInFlight()
The number of requests that the queue has sent but not yet received a reply for.
Returns | |
---|---|
Type | Description |
int |
The number of tasks currently in flight. |