org.apache.hadoop.util
Class Waitable<T>

java.lang.Object
  extended by org.apache.hadoop.util.Waitable<T>

public class Waitable<T>
extends Object

Represents an object that you can wait for.


Constructor Summary
Waitable(Condition cond)
           
 
Method Summary
 T await()
           
 T getVal()
           
 boolean hasVal()
           
 void provide(T val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Waitable

public Waitable(Condition cond)
Method Detail

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.