org.apache.hadoop.util
Class Waitable<T>
java.lang.Object
org.apache.hadoop.util.Waitable<T>
public class Waitable<T>
- extends Object
Represents an object that you can wait for.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Waitable
public Waitable(Condition cond)
await
public T await()
throws InterruptedException
- Throws:
InterruptedException
provide
public void provide(T val)
hasVal
public boolean hasVal()
getVal
public T getVal()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.