List of usage examples for com.google.common.util.concurrent AbstractFuture subclass-usage
From source file android.animation.FutureWaiter.java
/**
* 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.
*/
From source file org.stem.coordination.EventResultFuture.java
public class EventResultFuture extends AbstractFuture<StemResponse> implements Event.Handler.Callback { @Override public void onSet(StemResponse response, long latency) { set(response); }
From source file org.robotninjas.riemann.client.ReturnableMessage.java
public abstract class ReturnableMessage<T> extends AbstractFuture<T> { private final Proto.Msg msg; public ReturnableMessage(Proto.Msg msg) { this.msg = msg;
From source file com.microsoft.rest.ServiceFuture.java
/**
* An instance of this class provides access to the underlying REST call invocation.
* This class wraps around the Retrofit Call object and allows updates to it in the
* progress of a long running operation or a paging operation.
*
* @param <T> the type of the returning object
From source file com.mediatek.common.view.tests.animation.FutureWaiter.java
/**
* 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.
*/
From source file com.github.zhongl.util.CallbackFuture.java
/** @author <a href="mailto:zhong.lunfu@gmail.com">zhongl</a> */ public class CallbackFuture<T> extends AbstractFuture<T> implements FutureCallback<T> { @Override public void onSuccess(T result) { set(result);
From source file com.datastax.driver.core.SimpleFuture.java
/** * A simple future that can be set to a value. * * Note: this is equivalent to guava SettableFuture, but the latter is a final class. */ class SimpleFuture<V> extends AbstractFuture<V> {
From source file com.spotify.folsom.ConnectFuture.java
public class ConnectFuture extends AbstractFuture<Void> implements ConnectionChangeListener { private final boolean awaitedState; /** * Create a future that completes once the client reaches the awaited state
From source file org.stem.coordination.EventFuture.java
public class EventFuture extends AbstractFuture<StemResponse> implements Event.Handler.Callback { private final Event event; private final ZookeeperClient client; public EventFuture(Event event, ZookeeperClient client) {
From source file com.spotify.folsom.client.CallbackSettableFuture.java
class CallbackSettableFuture<T> extends AbstractFuture<T> implements Runnable { private final ListenableFuture<T> future; public CallbackSettableFuture(ListenableFuture<T> future) { this.future = future; }