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: 210062 $, $Date: 2005-07-11 12:52:38 +0900 $
- Author:
- Trustin Lee (trustin@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
Copyright © 2004-2005 . All Rights Reserved.