org.apache.mina.util
Class BlockingSet
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
java.util.HashSet
org.apache.mina.util.BlockingSet
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, java.io.Serializable, java.util.Set
- public class BlockingSet
- extends java.util.HashSet
A HashSet
that can wait until it is not empty.
- Version:
- $Rev: 326586 $, $Date: 2005-10-19 17:50:29 +0200 (Wed, 19 Oct 2005) $
- Author:
- The Apache Directory Project (dev@directory.apache.org)
- See Also:
- Serialized Form
Methods inherited from class java.util.HashSet |
clear, clone, contains, isEmpty, size |
Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
BlockingSet
public BlockingSet()
add
public boolean add(java.lang.Object o)
iterator
public java.util.Iterator iterator()
remove
public boolean remove(java.lang.Object o)
waitForNewItem
public void waitForNewItem()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException