org.apache.mina.util
Class BlockingSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet
org.apache.mina.util.BlockingSet
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, Set
public class BlockingSet
- extends HashSet
A HashSet
that can wait until it is not empty.
- Version:
- $Rev: 451852 $, $Date: 2006-10-02 10:35:45 +0900 (월, 02 10월 2006) $
- Author:
- The Apache Directory Project (dev@directory.apache.org)
- See Also:
- Serialized Form
BlockingSet
public BlockingSet()
add
public boolean add(Object o)
- Specified by:
add
in interface Collection
- Specified by:
add
in interface Set
- Overrides:
add
in class HashSet
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Iterable
- Specified by:
iterator
in interface Collection
- Specified by:
iterator
in interface Set
- Overrides:
iterator
in class HashSet
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection
- Specified by:
remove
in interface Set
- Overrides:
remove
in class HashSet
waitForNewItem
public void waitForNewItem()
throws InterruptedException
- Throws:
InterruptedException