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: 326586 $, $Date: 2005-10-20 00:50:29 +0900 (목, 20 10월 2005) $
- 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