# Class: queue

## queue

#### new queue()

  RichFaces Queue API container
  Source:
    - richfaces-queue.js, line 80

### Members

#### <static, constant> DEFAULT_QUEUE_ID :string

  ##### Type:

  - string
  Source:
    - richfaces-queue.js, line 378

### Methods

#### <static> clear()

  Remove all QueueEntry from the queue
  Source:
    - richfaces-queue.js, line 477

#### <static> getSize() → {number}

  Get current queue size
  Source:
    - richfaces-queue.js, line 385

  ##### Returns:

  size of items in the queue
  Type
    number

#### <static> isEmpty() → {boolean}

  Check if queue is empty
  Source:
    - richfaces-queue.js, line 394

  ##### Returns:

  returns true if queue is empty
  Type
    boolean

#### <static> push(source, event, options)

  Create and push QueueEntry to the queue for ajax requests

  ##### Parameters:

  Name | Type | Argument | Description
  --- | --- | --- | ---
  `source` | string | DOMElement |  | The DOM element or an id that triggered this ajax request
  `event` | object | <optional> | The DOM event that triggered this ajax request
  `options` | object | <optional> | The set name/value pairs that can be sent as request parameters to control client and/or server side request processing

  Source:
    - richfaces-queue.js, line 417

#### <static> submitFirst()

  Extract and submit first QueueEntry in the queue if QueueEntry is ready to submit
  Source:
    - richfaces-queue.js, line 403