com.google.code.tempusfugit.temporal
Class WaitFor

java.lang.Object
  extended by com.google.code.tempusfugit.temporal.WaitFor

public final class WaitFor
extends Object


Field Summary
static Duration SLEEP_PERIOD
           
 
Method Summary
static
<T,E extends Exception>
void
waitOrTimeout(Condition condition, Callable<T,E> onTimeout, Timeout timeout)
           
static void waitOrTimeout(Condition condition, Timeout timeout)
           
static void waitOrTimeout(Condition condition, Timeout timeout, Sleeper sleeper)
           
static void waitUntil(Timeout timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SLEEP_PERIOD

public static final Duration SLEEP_PERIOD
Method Detail

waitOrTimeout

public static void waitOrTimeout(Condition condition,
                                 Timeout timeout)
                          throws InterruptedException,
                                 TimeoutException
Throws:
InterruptedException
TimeoutException
Since:
1.1

waitOrTimeout

public static void waitOrTimeout(Condition condition,
                                 Timeout timeout,
                                 Sleeper sleeper)
                          throws TimeoutException,
                                 InterruptedException
Throws:
TimeoutException
InterruptedException
Since:
1.1

waitOrTimeout

public static <T,E extends Exception> void waitOrTimeout(Condition condition,
                                                         Callable<T,E> onTimeout,
                                                         Timeout timeout)
                          throws InterruptedException,
                                 E extends Exception
Throws:
InterruptedException
E extends Exception
Since:
1.2

waitUntil

public static void waitUntil(Timeout timeout)
                      throws InterruptedException
Throws:
InterruptedException


Copyright © 2009-2012 tempus-fugit committers. All Rights Reserved.