List of usage examples for com.google.common.util.concurrent ListenableFuture interface-usage
From source file com.infinities.skyport.distributed.impl.hazelcast.hazeltask.executor.DistributedFuture.java
public interface DistributedFuture<T> extends Serializable, ListenableFuture<T> { public boolean setCancelled(boolean mayInterruptIfRunning); public String getTaskId();
From source file info.archinnov.achilles.internal.async.ImmediateValue.java
public class ImmediateValue<V> implements ListenableFuture<V> { private final V value; public ImmediateValue(V value) { this.value = value;
From source file net.javacrumbs.futureconverter.java8guava.ListenableCompletableFutureWrapper.java
/** * Wraps {@link java.util.concurrent.CompletableFuture} and provides {@link com.google.common.util.concurrent.ListenableFuture} interface. * * @param <T> */ class ListenableCompletableFutureWrapper<T> extends FutureWrapper<T> implements ListenableFuture<T> {
From source file org.apache.crunch.PipelineExecution.java
/** * A handle to allow clients to control a Crunch pipeline as it runs. * * This interface is thread-safe. */ public interface PipelineExecution extends ListenableFuture<PipelineResult> {
From source file org.opendaylight.sxp.core.threading.SettableListenableFuture.java
/** * SettableListenableFuture class represent temporally ListenableFuture that serves as forwarder of requests, or if no ListenableFuture was set handle requests on its own. * * @param <T> Type of result */ public final class SettableListenableFuture<T> implements ListenableFuture<T> {
From source file com.github.trask.sandbox.http.client.ListenableHttpResponseFuture.java
/** * @author Trask Stalnaker */ class ListenableHttpResponseFuture implements ListenableFuture<HttpResponse> { private final com.ning.http.client.ListenableFuture<Response> delegate;
From source file com.linkedin.pinot.transport.common.KeyedFuture.java
/**
*
* This provides a composite listenable future interface with each response
* and errors keyed by an id.
*
* For example, in the case of future which holds scatter requests, this will
From source file info.archinnov.achilles.internal.async.EmptyFutureResultSets.java
public class EmptyFutureResultSets implements ListenableFuture<List<ResultSet>> { private static final EmptyFutureResultSets INSTANCE = new EmptyFutureResultSets(); public static EmptyFutureResultSets instance() { return INSTANCE;
From source file com.github.avarabyeu.wills.Will.java
/**
* Useful wrapper around Google's {@link com.google.common.util.concurrent.ListenableFuture}
*
* @param <T> Type of object to be returned
* @author Andrey Varabyeu
* @see {@link Wills}
From source file net.javacrumbs.futureconverter.guavarx.ObservableListenableFuture.java
class ObservableListenableFuture<T> extends FutureWrapper<T> implements ListenableFuture<T> { private final Observable<T> observable; private final Subscription subscription; @SuppressWarnings("unchecked") ObservableListenableFuture(Observable<T> observable) {