Example usage for java.util.concurrent FutureTask subclass-usage

List of usage examples for java.util.concurrent FutureTask subclass-usage

Introduction

In this page you can find the example usage for java.util.concurrent FutureTask subclass-usage.

Usage

From source file com.yimidida.shards.strategy.access.impl.StartAwareFutureTask.java

/**
 * Extension of FutureTask that provides slightly different cancel()
 * behavior.  We want cancel() to only return true if the task has not yet run.
 *
 * Multi-threaded scenario 1:
 * run() invoked in T1

From source file org.makersoft.shards.strategy.access.impl.StartAwareFutureTask.java

/**
 * Extension of FutureTask that provides slightly different cancel()
 * behavior.  We want cancel() to only return true if the task has not yet run.
 *
 * Multi-threaded scenario 1:
 * run() invoked in T1

From source file org.j2free.http.HttpCallFuture.java

/**
 * Extends FutureTask so that instances of HttpCallTask can be ordered by
 * priority in a PriorityBlockingQueue in the QueuedHttpCallService.
 *
 * @author Ryan Wilson
 */

From source file io.kahu.hawaii.util.call.dispatch.AsyncFutureRequest.java

/**
 * This class wraps an {@link AbortableRequest} to use inside an executor service.
 *
 * It creates a {@link CallableRequest} that does the actual work.
 * @param <T>
 */

From source file io.kahu.hawaii.util.call.dispatch.FutureRequest.java

/**
 * This class wraps an {@link AbortableRequest} to use inside an executor service.
 *
 * It creates a {@link CallableRequest} that does the actual work.
 * @param <T>
 */

From source file net.jmhertlein.mcanalytics.api.FutureRequest.java

/**
 * FutureRequest is a wrapper around a Request that provides a way to wait for the request to be
 * fulfilled by the server. When a Request is submitted to the APISocket, it will wrap it in a
 * FutureRequest. Client code can then wait on this object with the get() method (like the usual
 * Future interface) which will block until the request is completed.
 *

From source file org.commoncrawl.async.ConcurrentTask.java

/**
 * A FutureTask that runs concurrently but returns status via an async callback
 * in the specified event loop
 * 
 * @author rana
 *

From source file org.hibernate.shards.strategy.access.StartAwareFutureTask.java

/**
 * Extension of FutureTask that provides slightly different cancel()
 * behavior.  We want cancel() to only return true if the task has not yet run.
 *
 * Multi-threaded scenario 1:
 * run() invoked in T1

From source file org.isharding.shard.strategy.access.impl.StartAwareFutureTask.java

/**
 * Extension of FutureTask that provides slightly different cancel()
 * behavior.  We want cancel() to only return true if the task has not yet run.
 *
 * Multi-threaded scenario 1:
 * run() invoked in T1

From source file com.jillesvangurp.httpclientfuture.HttpClientFutureTask.java

public class HttpClientFutureTask<V> extends FutureTask<V> {

    private final HttpUriRequest request;

    private final AtomicBoolean cancelled;