Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.jasper.util
Class Queue

    java.lang.Object
      org.apache.jasper.util.Queue

    public class Queue

extends Object

A simple FIFO queue class which causes the calling thread to wait if the queue is empty and notifies threads that are waiting when it is not empty.

Author:
  Anil V (akv@eng.sun.com)

Constructor Summary
`Queue()`

Method Summary
`Object` | `get()` Get the first object out of the queue.
`boolean` | `isEmpty()` Is the queue empty?
`Object` | `peek()` Peek to see if something is available.
`Object` | `pull()` Pull the first object out of the queue.
`void` | `put(Object object)` Put the object into the queue.
`int` | `size()` How many elements are there in this queue?

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Queue

    public Queue()

Method Detail

### put

    public void put(Object object)

  Put the object into the queue.

  Parameters:
    `object` - the object to be appended to the queue.

### pull

    public Object pull()

  Pull the first object out of the queue. Wait if the queue is empty.

### get

    public Object get()

  Get the first object out of the queue. Return null if the queue is empty.

### peek

    public Object peek()

  Peek to see if something is available.

### isEmpty

    public boolean isEmpty()

  Is the queue empty?

### size

    public int size()

  How many elements are there in this queue?

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 Mort Bay Consulting. All Rights Reserved.