[[["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\u003eQueueConstants\u003c/code\u003e defines limits for task queues, including queue and task name constraints.\u003c/p\u003e\n"],["\u003cp\u003eThere are static fields, \u003ccode\u003eQUEUE_NAME_PATTERN\u003c/code\u003e, \u003ccode\u003eQUEUE_NAME_REGEX\u003c/code\u003e, \u003ccode\u003eTASK_NAME_PATTERN\u003c/code\u003e, and \u003ccode\u003eTASK_NAME_REGEX\u003c/code\u003e, specifying patterns and regular expressions for valid queue and task names.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes static methods to retrieve limits such as the maximum time a task can be scheduled into the future, the maximum lease duration for a task, and the maximum number of tasks to lease in one call.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQueueConstants\u003c/code\u003e provides methods to determine the maximum sizes for pull and push tasks, queue names, task names, and task tags.\u003c/p\u003e\n"],["\u003cp\u003eIt also includes limits for the number of tasks per add call and the maximum URL length for tasks, as well as a deprecated method \u003ccode\u003emaxTaskSizeBytes()\u003c/code\u003e that is being replaced by \u003ccode\u003emaxPushTaskSizeBytes()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class QueueConstants (2.0.0)\n\n public final class QueueConstants\n\nDescribes various taskqueue limits. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e QueueConstants \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\nStatic Fields\n-------------\n\n### QUEUE_NAME_PATTERN\n\n public static final Pattern QUEUE_NAME_PATTERN\n\n### QUEUE_NAME_REGEX\n\n public static final String QUEUE_NAME_REGEX\n\nRegular expression that matches all valid queue names.\n\n### TASK_NAME_PATTERN\n\n public static final Pattern TASK_NAME_PATTERN\n\n### TASK_NAME_REGEX\n\n public static final String TASK_NAME_REGEX\n\nRegular expression that matches all valid task names.\n\nStatic Methods\n--------------\n\n### getMaxEtaDeltaMillis()\n\n public static long getMaxEtaDeltaMillis()\n\nReturns the maximum time into the future that a task may be scheduled.\n\n### maxLease(TimeUnit unit)\n\n public static long maxLease(TimeUnit unit)\n\nReturns the maximum length of period to lease a task.\n\n### maxLeaseCount()\n\n public static long maxLeaseCount()\n\nReturns the maximum number of tasks to lease in one call.\n\n### maxPullTaskSizeBytes()\n\n public static int maxPullTaskSizeBytes()\n\nReturns the maximum pull task size.\n\n### maxPushTaskSizeBytes()\n\n public static int maxPushTaskSizeBytes()\n\nReturns the maximum push task size.\n\n### maxQueueNameLength()\n\n public static int maxQueueNameLength()\n\nReturns the maximum length of a queue name.\n\n### maxTaskNameLength()\n\n public static int maxTaskNameLength()\n\nReturns the maximum length of a task name.\n\n### maxTaskSizeBytes() (deprecated)\n\n public static int maxTaskSizeBytes()\n\n**Deprecated.** *Use [#maxPushTaskSizeBytes()](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.QueueConstants#com_google_appengine_api_taskqueue_QueueConstants_maxPushTaskSizeBytes__)*\n\nReturns the maximum push task size.\n\n### maxTaskTagLength()\n\n public static int maxTaskTagLength()\n\nReturns the maximum length of a task tag.\n\n### maxTasksPerAdd()\n\n public static int maxTasksPerAdd()\n\nReturns the maximum number of tasks that may be passed to a single add call.\n\n### maxUrlLength()\n\n public static int maxUrlLength()\n\nReturns the maximum URL length."]]