Stay organized with collections
Save and categorize content based on your preferences.
publicfinalclassQueueStatistics
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eQueueStatistics\u003c/code\u003e provides approximate observations of task execution rates on a given queue.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes methods to retrieve the enforced task execution rate, tasks executed in the last minute, and the number of non-completed tasks.\u003c/p\u003e\n"],["\u003cp\u003eIt also allows you to see the estimated time of arrival (ETA) for the oldest task, the queue's name, and number of tasks that have been sent but a reply has not been received.\u003c/p\u003e\n"],["\u003cp\u003eAll the methods in this class provide different data points, but all of them return their results either as \u003ccode\u003eint\u003c/code\u003e, \u003ccode\u003edouble\u003c/code\u003e, \u003ccode\u003elong\u003c/code\u003e, \u003ccode\u003estring\u003c/code\u003e, or \u003ccode\u003elong\u003c/code\u003e data types.\u003c/p\u003e\n"]]],[],null,["# Class QueueStatistics (2.0.0)\n\n public final class QueueStatistics\n\n[QueueStatistics](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.QueueStatistics) allow observation of the rate that tasks on a given queue are being\nexecuted. Note that statistics provided are only approximate, and some statistics may be delayed\nor transiently unavailable. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e QueueStatistics \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nMethods\n-------\n\n### getEnforcedRate()\n\n public double getEnforcedRate()\n\nReturns the maximum number of tasks per second being run by this queue.\n\n### getExecutedLastMinute()\n\n public long getExecutedLastMinute()\n\nReturns the number of tasks executed in the last minute.\n\n### getNumTasks()\n\n public int getNumTasks()\n\nReturns the approximate number of non-completed tasks in the queue.\n\n### getOldestEtaUsec()\n\n public Long getOldestEtaUsec()\n\nReturns a recent estimate of the eta of the oldest non-completed task in the queue.\n\n### getQueueName()\n\n public String getQueueName()\n\nReturns the name of the [Queue](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.Queue).\n\n### getRequestsInFlight()\n\n public int getRequestsInFlight()\n\nThe number of requests that the queue has sent but not yet received a reply for."]]