org.apache.jasper.util
クラス Queue
java.lang.Object
|
+--org.apache.jasper.util.Queue
- 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.
- 作成者:
- Anil V (akv@eng.sun.com)
メソッドの概要 |
java.lang.Object |
get()
Get the first object out of the queue. |
boolean |
isEmpty()
Is the queue empty? |
java.lang.Object |
peek()
Peek to see if something is available. |
java.lang.Object |
pull()
Pull the first object out of the queue. |
void |
put(java.lang.Object object)
Put the object into the queue. |
int |
size()
How many elements are there in this queue? |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Queue
public Queue()
put
public void put(java.lang.Object object)
- Put the object into the queue.
- パラメータ:
object
- the object to be appended to the
queue.
pull
public java.lang.Object pull()
- Pull the first object out of the queue. Wait if the queue is
empty.
get
public java.lang.Object get()
- Get the first object out of the queue. Return null if the queue
is empty.
peek
public java.lang.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?
Copyright ? 2000 Apache Software Foundation. All Rights Reserved.