|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.util.Queue
public class Queue
Implements a fully synchronised FIFO queue of Objects.
| Constructor Summary | |
|---|---|
Queue()
|
|
| Method Summary | |
|---|---|
void |
empty()
Drop the contents of the queue. |
Object |
get()
Answer an element from the receiver. |
Object |
get(long timeout)
Answer an element from the receiver. |
boolean |
isEmpty()
Answer whether the receiver is empty. |
void |
put(Object o)
Add an element to the receiver. |
int |
size()
Answer the number of elements in the receiver. |
void |
stop()
Release all waiters |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Queue()
| Method Detail |
|---|
public boolean isEmpty()
public int size()
public void put(Object o)
o - -- the Object to addpublic Object get(long timeout)
timeout - -- number of milliseconds to wait
public Object get()
public void stop()
public void empty()
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||