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 de.blizzy.documentr.search.GetSearchHitTask.java

class GetSearchHitTask implements Callable<SearchHit> {
    private static final int NUM_FRAGMENTS = 5;
    private static final int FRAGMENT_SIZE = 50;

    private Query query;
    private IndexReader reader;

From source file org.apache.hedwig.client.benchmark.HedwigBenchmark.java

public class HedwigBenchmark implements Callable<Void> {
    protected static final Logger logger = LoggerFactory.getLogger(HedwigBenchmark.class);

    static final String TOPIC_PREFIX = "topic";

    private final HedwigClient client;

From source file org.apache.stratos.mediator.autoscale.lbautoscale.callables.AutoscaleDeciderCallable.java

/** Take auto-scaling decisions for each service domain, sub domain combination **/
public class AutoscaleDeciderCallable implements Callable<Boolean> {

    private static final Log log = LogFactory.getLog(AutoscaleDeciderCallable.class);
    private String domain;
    private String subDomain;

From source file com.anrisoftware.sscontrol.scripts.localuser.LocalUserInfo.java

/**
 * Returns information about the local user.
 *
 * @author Erwin Mueller, erwin.mueller@deventm.org
 * @since 1.0
 */

From source file ch.cern.dss.teamcity.agent.MockCallable.java

/**
 * Callable (thread) implementation in which to run a single mock build.
 */
public class MockCallable implements Callable<BuildFinishedStatus> {

    private final MockContext context;

From source file com.sina.scs.transfer.internal.UploadMonitor.java

/**
 * Manages an upload by periodically checking to see if the upload is done, and
 * returning a result if so. Otherwise, schedules a copy of itself to be run in
 * the future and returns null. When waiting on the result of this class via a
 * Future object, clients must call {@link UploadMonitor#isDone()} and
 * {@link UploadMonitor#getFuture()}

From source file com.cloudera.oryx.als.computation.LoadRunner.java

/**
 * Runs a mixed, concurrent load against a given recommender instance.
 * 
 * @author Sean Owen
 */
public final class LoadRunner implements Callable<Object> {

From source file org.carbondata.processing.util.LevelSortIndexWriterThread.java

/**
 * Below class is responsible for creating the level sort index data file
 */
public class LevelSortIndexWriterThread implements Callable<Void> {

    /**

From source file com.abiquo.am.services.filesystem.EnterpriseRepositoryRefreshWithTimeout.java

/**
 * Run a folder list in another thread in order to cancel if it take too long
 */
public class EnterpriseRepositoryRefreshWithTimeout implements Callable<List<TemplateStateDto>> {
    private final static Logger LOG = LoggerFactory.getLogger(EnterpriseRepositoryRefreshWithTimeout.class);

From source file de.tudarmstadt.ukp.dkpro.argumentation.io.XmiFilePatternJsonStreamDumper.java

/**
 * Derived from <a href=
 * "https://github.com/dkpro/dkpro-argumentation/blob/master/de.tudarmstadt.ukp.dkpro.argumentation.examples/src/main/java/tutorial/ArgumentationCorpusDebugger.java">
 * <code>de.tudarmstadt.ukp.dkpro.argumentation.tutorial.ArgumentationCorpusDebugger</code> </a>
 * because the Maven package structure for getting that class is very bad.
 *