Example usage for com.google.common.util.concurrent AbstractFuture subclass-usage

List of usage examples for com.google.common.util.concurrent AbstractFuture subclass-usage

Introduction

In this page you can find the example usage for com.google.common.util.concurrent AbstractFuture subclass-usage.

Usage

From source file io.pravega.controller.mocks.AckFutureMock.java

/**
 * Mock AckFuture.
 */
public class AckFutureMock extends AbstractFuture<Void> implements AckFuture {
    public AckFutureMock(CompletableFuture<Boolean> result) {
        result.handle((bool, exception) -> {

From source file org.opendaylight.infrautils.utils.concurrent.CompletableToListenableFutureWrapper.java

class CompletableToListenableFutureWrapper<V> extends AbstractFuture<V> implements BiConsumer<V, Throwable> {

    // This implementation is "strongly inspired" ;) by spotify/futures-extra's class of the same name

    @SuppressWarnings("FutureReturnValueIgnored") // We have no use for the CompletableFuture returned by whenComplete
    CompletableToListenableFutureWrapper(CompletableFuture<V> completableFuture) {

From source file com.microsoft.rest.ServiceCall.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 org.opendaylight.netconf.sal.connect.netconf.listener.UncancellableFuture.java

final class UncancellableFuture<V> extends AbstractFuture<V> {
    @GuardedBy("this")
    private boolean uncancellable = false;

    public UncancellableFuture(final boolean uncancellable) {
        this.uncancellable = uncancellable;

From source file org.opendaylight.controller.sal.connect.netconf.UncancellableFuture.java

final class UncancellableFuture<V> extends AbstractFuture<V> {
    @GuardedBy("this")
    private boolean uncancellable = false;

    public UncancellableFuture(boolean uncancellable) {
        this.uncancellable = uncancellable;

From source file org.opendaylight.controller.sal.connect.netconf.listener.UncancellableFuture.java

final class UncancellableFuture<V> extends AbstractFuture<V> {
    @GuardedBy("this")
    private boolean uncancellable = false;

    public UncancellableFuture(final boolean uncancellable) {
        this.uncancellable = uncancellable;

From source file com.afewmoreamps.util.SettableFuture.java

public class SettableFuture<V> extends AbstractFuture<V> {
    public static <V> SettableFuture<V> create() {
        return new SettableFuture<V>();
    }

    private SettableFuture() {

From source file io.pravega.client.stream.impl.AckFutureImpl.java

final class AckFutureImpl extends AbstractFuture<Void> implements AckFuture {

    private final Runnable flush;

    public AckFutureImpl(CompletableFuture<Boolean> result, Runnable flush) {
        this.flush = flush;

From source file com.rackspacecloud.blueflood.concurrent.NoOpFuture.java

public class NoOpFuture<V> extends AbstractFuture<V> {
    public NoOpFuture(V result) {
        set(result);
    }
}

From source file org.thingsboard.server.dao.timeseries.SimpleListenableFuture.java

/**
 * Created by ashvayka on 21.02.17.
 */
public class SimpleListenableFuture<V> extends AbstractFuture<V> {

    public boolean set(V value) {