Class QueueConstants


  • public final class QueueConstants
    extends Object
    Describes various taskqueue limits.
    • Field Detail

      • TASK_NAME_REGEX

        public static final String TASK_NAME_REGEX
        Regular expression that matches all valid task names.
      • TASK_NAME_PATTERN

        public static final Pattern TASK_NAME_PATTERN
      • QUEUE_NAME_REGEX

        public static final String QUEUE_NAME_REGEX
        Regular expression that matches all valid queue names.
      • QUEUE_NAME_PATTERN

        public static final Pattern QUEUE_NAME_PATTERN
    • Method Detail

      • maxLease

        public static long maxLease​(TimeUnit unit)
        Returns the maximum length of period to lease a task.
      • maxLeaseCount

        public static long maxLeaseCount()
        Returns the maximum number of tasks to lease in one call.
      • maxQueueNameLength

        public static int maxQueueNameLength()
        Returns the maximum length of a queue name.
      • maxTaskNameLength

        public static int maxTaskNameLength()
        Returns the maximum length of a task name.
      • maxTaskTagLength

        public static int maxTaskTagLength()
        Returns the maximum length of a task tag.
      • maxPushTaskSizeBytes

        public static int maxPushTaskSizeBytes()
        Returns the maximum push task size.
      • maxPullTaskSizeBytes

        public static int maxPullTaskSizeBytes()
        Returns the maximum pull task size.
      • maxTasksPerAdd

        public static int maxTasksPerAdd()
        Returns the maximum number of tasks that may be passed to a single add call.
      • maxUrlLength

        public static int maxUrlLength()
        Returns the maximum URL length.
      • getMaxEtaDeltaMillis

        public static long getMaxEtaDeltaMillis()
        Returns the maximum time into the future that a task may be scheduled.