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

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

Introduction

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

Usage

From source file Main.java

class ListSearcher implements Callable<Set<String>> {

    private final List<String> searchList;
    private final Set<String> targetSet;
    private final Set<String> matchSet = new HashSet<String>();

From source file org.rhq.core.pc.inventory.AvailabilityExecutor.java

/**
 * Runs a periodic scan for resource availability.
 *
 * @author Jay Shaughnessy
 * @author John Mazzitelli
 * @author Ian Springer

From source file org.rhq.core.pc.inventory.AutoDiscoveryExecutor.java

/**
 * Standard platform/server inventory detection execution. This is typically called in a non-blocking fashion and the
 * report is returned asynchronously to the server. It is available for direct execution via a Future when running in an
 * embedded mode.
 *
 * @author Greg Hinkle

From source file com.amazonaws.services.s3.transfer.internal.UploadCallable.java

public class UploadCallable implements Callable<UploadResult> {
    private final AmazonS3 s3;
    private final ExecutorService threadPool;
    private final PutObjectRequest putObjectRequest;
    private String multipartUploadId;
    private final UploadImpl upload;

From source file org.apache.hadoop.yarn.util.FSDownload.java

/**
 * Download a single URL to the local disk.
 *
 */
@LimitedPrivate({ "YARN", "MapReduce" })
public class FSDownload implements Callable<Path> {

From source file datafu.hourglass.jobs.StagedOutputJob.java

/**
 * A derivation of {@link Job} that stages its output in another location and only
 * moves it to the final destination if the job completes successfully.
 * It also outputs a counters file to the file system that contains counters fetched from Hadoop
 * and other task statistics.
 */

From source file org.apache.tez.runtime.library.shuffle.common.Fetcher.java

/**
 * Responsible for fetching inputs served by the ShuffleHandler for a single
 * host. Construct using {@link FetcherBuilder}
 */
public class Fetcher implements Callable<FetchResult> {

From source file com.svi.uzabase.logic.ValidationProcess.java

/**
 *
 * @author Daniel
 */
public class ValidationProcess implements Callable<Map<String, List<?>>> {

From source file de.tu_dortmund.ub.data.dswarm.Ingest.java

/**
 * Ingest-Task for Task Processing Unit for d:swarm
 *
 * @author Dipl.-Math. Hans-Georg Becker (M.L.I.S.)
 * @author Jan Polowinski (SLUB Dresden)
 * @version 2015-04-17

From source file com.github.lindenb.jvarkit.util.command.Command.java

public abstract class Command implements Callable<Collection<Throwable>> {
    protected enum Status {
        OK, EXIT_SUCCESS, EXIT_FAILURE
    };

    private static final org.slf4j.Logger LOG = com.github.lindenb.jvarkit.util.log.Logging.getLog(Command.class);