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.github.rvesse.airline.help.suggester.SuggestCommand.java

@Command(name = "suggest")
public class SuggestCommand<T> implements Runnable, Callable<Void> {
    private static final Map<Context, Class<? extends Suggester>> BUILTIN_SUGGESTERS = new HashMap<>();

    static {
        BUILTIN_SUGGESTERS.put(Context.GLOBAL, GlobalSuggester.class);

From source file com.revo.deployr.client.call.repository.RepositoryDirectoryUploadCall.java

/**
 * Provides support for DeployR API call: /r/repository/directory/upload.
 * <p/>
 * Simply construct an instance of this call and pass it on the
 * execute() method of your {@link com.revo.deployr.client.RClient}.
 */

From source file io.github.bedwarsrel.BedwarsRel.Utils.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 org.fusesource.cloudmix.controller.provisioning.ProvisioningGridController.java

/**
 * @version $Revision$
 */
public class ProvisioningGridController extends DefaultGridController
        implements InitializingBean, DisposableBean, Callable<Object> {

From source file com.netsteadfast.greenstep.bsc.support.ScoreCalculationCallable.java

public class ScoreCalculationCallable implements Callable<ScoreCalculationCallableData> {
    /*
    private static final String QUARTER_1 = "Q1";
    private static final String QUARTER_2 = "Q2";
    private static final String QUARTER_3 = "Q3";
    private static final String QUARTER_4 = "Q4";

From source file com.revo.deployr.client.call.repository.RepositoryFileUploadCall.java

/**
 * Provides support for DeployR API call: /r/repository/file/upload.
 * <p/>
 * Simply construct an instance of this call and pass it on the
 * execute() method of your {@link com.revo.deployr.client.RClient}.
 */

From source file com.publicuhc.pluginframework.util.UUIDFetcher.java

public class UUIDFetcher implements Callable<Map<String, UUID>> {

    private static final double QUERIES_PER_REQUEST = 100;
    private static final String PROFILE_URL = "https://api.mojang.com/profiles/minecraft";

    private final JSONParser m_jsonParser = new JSONParser();

From source file org.apache.hadoop.hive.llap.cli.service.AsyncTaskCopyAuxJars.java

/** Copy auxiliary jars for the tarball. */
class AsyncTaskCopyAuxJars implements Callable<Void> {
    private static final Logger LOG = LoggerFactory.getLogger(AsyncTaskCopyAuxJars.class.getName());

    private static final String[] DEFAULT_AUX_CLASSES = new String[] { "org.apache.hive.hcatalog.data.JsonSerDe",
            "org.apache.hadoop.hive.druid.DruidStorageHandler", "org.apache.hive.storage.jdbc.JdbcStorageHandler",

From source file org.springframework.data.keyvalue.riak.groovy.RiakOperation.java

/**
 * @author J. Brisbin <jon@jbrisbin.com>
 */
public class RiakOperation<T> implements Callable {

    static enum Type {

From source file com.anrisoftware.prefdialog.miscswing.dialogsworker.OpenDialogAction.java

/**
 * Opens a dialog on the AWT event thread and waits for the user to close it.
 *
 * @author Erwin Mueller, erwin.mueller@deventm.org
 * @since 3.2
 */