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 com.cloudera.oryx.kmeans.computation.local.Assignment.java

public class Assignment implements Callable<List<String>> {

    private static final Logger log = LoggerFactory.getLogger(Assignment.class);
    private static final Joiner COMMA = Joiner.on(',');

    private final List<List<RealVector>> folds;

From source file edu.wpi.checksims.util.threading.SimilarityDetectionWorker.java

/**
 * Basic unit of thread execution for similarity detection.
 *
 * Takes two Submissions, applies an algorithm to them, returns results.
 */
public class SimilarityDetectionWorker implements Callable<AlgorithmResults> {

From source file com.espertech.esper.example.rfidassetzone.AssetEventGenCallable.java

public class AssetEventGenCallable implements Callable<Boolean> {
    public static final int NUM_ZONES = 20;

    private static final Log log = LogFactory.getLog(AssetEventGenCallable.class);
    private final EPServiceProvider engine;
    private final String[][] assetIds;

From source file org.silverpeas.silverstatistics.volume.FileNumberComputer.java

/**
 * Compute the size in terms of number of files.
 */
public class FileNumberComputer implements Callable<DirectoryStats> {

    private final File directory;

From source file com.turn.splicer.SuggestHttpWorker.java

/**
 * Takes a api/suggest query string and runs it against a random TSD node,
 * returns the result of the query
 *
 * TODO: needs to be refactored with HttpWorker, there is a lot of duplicate logic
 * TODO: error reporting differs from regular TSDB - no error message for invalid type

From source file com.gamingmesh.jobs.util.UUIDFetcher.java

public class UUIDFetcher implements Callable<Map<String, UUID>> {
    private static final double PROFILES_PER_REQUEST = 100;
    private static final String PROFILE_URL = "https://api.mojang.com/profiles/minecraft";
    private final JSONParser jsonParser = new JSONParser();
    private final List<String> names;
    private final boolean rateLimiting;

From source file annis.gui.controller.FrequencyBackgroundJob.java

/**
 *
 * @author Thomas Krause <krauseto@hu-berlin.de>
 */
public class FrequencyBackgroundJob implements Callable<FrequencyTable> {
    private static final Logger log = LoggerFactory.getLogger(FrequencyBackgroundJob.class);

From source file io.github.a2937.forgejobs.util.UUIDFetcher.java

public class UUIDFetcher implements Callable<Map<String, UUID>> {
    private static final double PROFILES_PER_REQUEST = 100;
    private static final String PROFILE_URL = "https://api.mojang.com/profiles/minecraft";
    private final JSONParser jsonParser = new JSONParser();
    private final List<String> names;
    private final boolean rateLimiting;

From source file com.espertech.esper.multithread.StmtNamedWindowIterateCallable.java

public class StmtNamedWindowIterateCallable implements Callable {
    private final EPServiceProvider engine;
    private final int numRepeats;
    private final String threadKey;
    private EPStatement statement;

From source file com.google.gerrit.server.account.GeneratePassword.java

/** Operation to generate a password for an account. */
public class GeneratePassword implements Callable<AccountExternalId> {
    private static final int LEN = 12;
    private static final SecureRandom rng;

    static {