FileDocCategorySizeDatePackage
FutureWaiter.javaAPI DocAndroid 5.1 API1571Thu Mar 12 22:22:12 GMT 2015android.animation

FutureWaiter

public class FutureWaiter extends AbstractFuture
Simple extension of {@link com.google.common.util.concurrent.AbstractFuture} which exposes a new release() method which calls the protected {@link com.google.common.util.concurrent.AbstractFuture#set(Object)} method internally. It also exposes the protected {@link AbstractFuture#setException(Throwable)} method.

Fields Summary
Constructors Summary
Methods Summary
public voidrelease()
Release the Future currently waiting on {@link com.google.common.util.concurrent.AbstractFuture#get()}.

        super.set(true);
    
public voidset(boolean result)
Used to indicate failure (when the result value is false).

        super.set(result);
    
public booleansetException(java.lang.Throwable throwable)

        return super.setException(throwable);