Example usage for java.util.concurrent Future interface-usage

List of usage examples for java.util.concurrent Future interface-usage

Introduction

In this page you can find the example usage for java.util.concurrent Future interface-usage.

Usage

From source file org.springside.modules.utils.concurrent.BasicFuture.java

/**
 * Apache HttpClient 4.2 ?Future.
 */
public abstract class BasicFuture<T> implements Future<T> {

    private volatile boolean completed;

From source file org.springside.modules.utils.concurrent.type.BasicFuture.java

/**
 * Apache HttpClient ?(2017.4)Future.
 * 
 * https://github.com/apache/httpcomponents-core/blob/master/httpcore5/src/main/java/org/apache/hc/core5/concurrent/BasicFuture.java
 * 
 * ?HCcallback

From source file org.diorite.impl.scheduler.DioriteFuture.java

public class DioriteFuture<T> extends DioriteTaskImpl implements Future<T> {
    private final Callable<T> callable;
    private T value;
    private Exception exception = null;

    DioriteFuture(final Callable<T> callable, final DioritePlugin dioritePlugin, final Synchronizable sync,

From source file org.spout.api.chat.completion.CompletionFuture.java

/**
 * Represents a completion that is in process which may need to be sent over the network for a response
 */
public class CompletionFuture extends ObjectEvent<CompletionFuture>
        implements Future<CompletionResponse>, Eventable<CompletionFuture, CompletionFuture> {
    private volatile boolean cancelled;

From source file net.tirasa.wink.client.asynchttpclient.FutureClientResponse.java

public class FutureClientResponse implements Future<ClientResponse>, ClientResponse {

    private final ApacheHttpAsyncClientConnectionHandler handler;

    private final ClientRequest request;

From source file SwingWorker.java

/**
 * An abstract class to perform lengthy GUI-interacting tasks in a
 * dedicated thread.
 * 
 * <p>
 * When writing a multi-threaded application using Swing, there are

From source file esg.node.core.ESGCallableFutureEvent.java

public abstract class ESGCallableFutureEvent<T> extends ESGCallableEvent implements Future<T> {

    private static final Log log = LogFactory.getLog(ESGCallableFutureEvent.class);

    private volatile T result = null;
    private volatile boolean cancelled = false;

From source file org.jdesktop.swingworker.AccumulativeRunnable.java

/**
 * An abstract class to perform lengthy GUI-interacting tasks in a
 * dedicated thread.
 * 
 * <p>
 * When writing a multi-threaded application using Swing, there are