Send feedback
Class QueueConstants (2.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class QueueConstants
Describes various taskqueue limits.
Static Fields
QUEUE_NAME_PATTERN
public static final Pattern QUEUE_NAME_PATTERN
Field Value
Type
Description
Pattern
QUEUE_NAME_REGEX
public static final String QUEUE_NAME_REGEX
Regular expression that matches all valid queue names.
Field Value
Type
Description
String
TASK_NAME_PATTERN
public static final Pattern TASK_NAME_PATTERN
Field Value
Type
Description
Pattern
TASK_NAME_REGEX
public static final String TASK_NAME_REGEX
Regular expression that matches all valid task names.
Field Value
Type
Description
String
Static Methods
getMaxEtaDeltaMillis()
public static long getMaxEtaDeltaMillis ()
Returns the maximum time into the future that a task may be scheduled.
Returns
Type
Description
long
maxLease(TimeUnit unit)
public static long maxLease ( TimeUnit unit )
Returns the maximum length of period to lease a task.
Parameter
Name
Description
unit
TimeUnit
Returns
Type
Description
long
maxLeaseCount()
public static long maxLeaseCount ()
Returns the maximum number of tasks to lease in one call.
Returns
Type
Description
long
maxPullTaskSizeBytes()
public static int maxPullTaskSizeBytes ()
Returns the maximum pull task size.
Returns
Type
Description
int
maxPushTaskSizeBytes()
public static int maxPushTaskSizeBytes ()
Returns the maximum push task size.
Returns
Type
Description
int
maxQueueNameLength()
public static int maxQueueNameLength ()
Returns the maximum length of a queue name.
Returns
Type
Description
int
maxTaskNameLength()
public static int maxTaskNameLength ()
Returns the maximum length of a task name.
Returns
Type
Description
int
maxTaskSizeBytes() (deprecated)
public static int maxTaskSizeBytes ()
Returns
Type
Description
int
maxTaskTagLength()
public static int maxTaskTagLength ()
Returns the maximum length of a task tag.
Returns
Type
Description
int
maxTasksPerAdd()
public static int maxTasksPerAdd ()
Returns the maximum number of tasks that may be passed to a single add call.
Returns
Type
Description
int
maxUrlLength()
public static int maxUrlLength ()
Returns the maximum URL length.
Returns
Type
Description
int
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-30 UTC.
Need to tell us more?
[[["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 2024-10-30 UTC."],[],[]]