com.sun.jini.norm
Class Queue
java.lang.Object
com.sun.jini.norm.Queue
class Queue
- extends Object
Simple thread-safe FIFO sequence.
- Author:
- Sun Microsystems, Inc.
Field Summary |
private List |
lst
List we actually store stuff in |
Constructor Summary |
Queue()
|
Method Summary |
(package private) Object |
dequeue()
Block until the queue is non-empty and return the first item. |
(package private) void |
enqueue(Object o)
Enqueue an item. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lst
private final List lst
- List we actually store stuff in
Queue
Queue()
enqueue
void enqueue(Object o)
- Enqueue an item.
dequeue
Object dequeue()
throws InterruptedException
- Block until the queue is non-empty and return the first item.
- Throws:
InterruptedException
- if the current thread is interrupted
while the queue is waiting for an item to appear
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.