Example usage for com.google.common.util.concurrent AsyncFunction interface-usage

List of usage examples for com.google.common.util.concurrent AsyncFunction interface-usage

Introduction

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

Usage

From source file com.yahoo.yqlplus.engine.internal.java.functions.MethodHandleAsyncFunction.java

public final class MethodHandleAsyncFunction<F, T> implements AsyncFunction<F, T> {
    private final MethodHandle handle;

    public MethodHandleAsyncFunction(MethodHandle handle) {
        this.handle = handle;
    }

From source file co.cask.cdap.common.conf.PropertyUpdater.java

/**
 * An async function to update property in {@link PropertyStore}.
 *
 * @param <T> Type of property to update
 */
public interface PropertyUpdater<T> extends AsyncFunction<T, T> {

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

/**
 * Does asynchronous work using a specified threadpool.
 * @param <I>
 * @param <O>
 */
public abstract class AsyncFunctionWithThreadPool<I, O> implements AsyncFunction<I, O> {

From source file dagger.producers.internal.AbstractProducesMethodProducer.java

/**
 * An {@link AbstractProducer} for all {@link dagger.producers.Produces} methods.
 *
 * @param <D> the type of asynchronous dependencies. These will be collected in {@link
 *     #collectDependencies()} and then made available to the {@code @Produces method in} {@link
 *     #callProducesMethod(Object)}. If there is only one asynchronous dependency, {@code D} can be

From source file com.tinspx.util.net.RequestContext.java

/**
 * Responsible for executing a {@link Request} and producing a {@link Response}.
 * <p>
 * How the {@code Request} is converted into a {@code Response} is undefined.
 * The point of {@code Request} and {@code Response} is to <i>describe</i> the
 * request or response, decoupling them from the implementation of actually

From source file com.google.cloud.bigtable.grpc.async.RetryingRpcFunction.java

/**
 * A {@link AsyncFunction} that retries a {@link BigtableAsyncRpc} request.
 */
public class RetryingRpcFunction<RequestT, ResponseT> implements AsyncFunction<StatusRuntimeException, ResponseT> {

    protected final static Logger LOG = new Logger(RetryingRpcFunction.class);

From source file org.opendaylight.protocol.bgp.openconfig.impl.moduleconfig.RibInstanceFunction.java

final class RibInstanceFunction<T extends ServiceRef & ChildOf<Module>> implements AsyncFunction<String, T> {

    private final ReadTransaction rTx;
    private final BGPConfigModuleProvider configModuleOp;
    private final Function<String, T> function;

From source file org.apache.fluo.core.async.AsyncConditionalWriter.java

public class AsyncConditionalWriter implements AsyncFunction<Collection<ConditionalMutation>, Iterator<Result>> {

    private final ConditionalWriter cw;
    private final ListeningExecutorService les;
    private final Limit semaphore;

From source file org.opendaylight.protocol.bgp.openconfig.impl.moduleconfig.TableTypesFunction.java

final class TableTypesFunction<T extends ServiceRef & ChildOf<Module>>
        implements AsyncFunction<List<AfiSafi>, List<T>> {

    private final ReadTransaction rTx;
    private final BGPConfigModuleProvider configModuleWriter;
    private final Function<String, T> function;