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

## org.apache.tomcat.util.collections
Class Queue

    java.lang.Object
      org.apache.tomcat.util.collections.Queue

Deprecated.

    public class Queue

extends java.lang.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()` Deprecated.

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

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

Constructor Detail

### Queue

    public Queue()

  Deprecated.

Method Detail

### put

    public void put(java.lang.Object object)

  Deprecated.
  Put the object into the queue.

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

### stop

    public void stop()

  Deprecated.
  Break the pull(), allowing the calling thread to exit

### pull

    public java.lang.Object pull()

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

### get

    public java.lang.Object get()

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

### peek

    public java.lang.Object peek()

  Deprecated.
  Peek to see if something is available.

### isEmpty

    public boolean isEmpty()

  Deprecated.
  Is the queue empty?

### size

    public int size()

  Deprecated.
  How many elements are there in this queue?

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

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.