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 org.paxle.se.search.impl.SearchProviderCallable.java

public class SearchProviderCallable implements Callable<ISearchResult> {

    /**
     * For logging
     */
    private final Log logger;

From source file ld.ldhomework.crawler.DownloadTask.java

/**
 * The {@link DownloadTask} is used for downloading RDF documents while crawling
 * the network. It implements the {@link Callable} interface so that it may be
 * used in multithreaded setup - but the main reason for doing so is the
 * possibility to avoid blocking I/O. Internally this class uses the Apache
 * HTTPClient which does the actual HTTP GET operations including all redirect

From source file org.silverpeas.core.silverstatistics.volume.service.DirectorySizeComputer.java

/**
 * Compute the total size of a directory.
 */
public class DirectorySizeComputer implements Callable<DirectoryStats> {

    private final File directory;

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

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

    protected final Log log = LogFactory.getLog(getClass());

From source file cn.keke.travelmix.publictransport.RoutingTask.java

public class RoutingTask implements Callable<String> {
    private final RoutingJob job;
    private final String url;
    private final boolean zipped;
    private StringBuffer response;
    private Header[] headers;

From source file org.red5.server.net.rtmp.ReceivedMessageTask.java

/**
 * Wraps processing of incoming messages.
 * 
 * @author Paul Gregoire (mondain@gmail.com)
 */
public final class ReceivedMessageTask implements Callable<Packet> {

From source file org.devtcg.five.meta.LastfmMetaTask.java

public abstract class LastfmMetaTask implements Callable<Object> {
    protected static final Log LOG = LogFactory.getLog(LastfmMetaTask.class);

    private static final String API_KEY = "3edc5156fb5dc2d185c1f00ba0282ea5";
    protected static final String LASTFM_CALL_URL = "http://ws.audioscrobbler.com/2.0/?api_key=" + API_KEY;

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

public class StmtListenerRouteCallable implements Callable {
    private final int numThread;
    private final EPServiceProvider engine;
    private final EPStatement statement;
    private final int numRepeats;

From source file com.cloudera.oryx.als.computation.local.ComputeMAP.java

final class ComputeMAP implements Callable<Object> {

    private static final Logger log = LoggerFactory.getLogger(ComputeMAP.class);

    private final File testDir;
    private final LongObjectMap<float[]> X;

From source file uk.me.sa.android.notify_smtp.net.SendEmail.java

public class SendEmail implements Callable<Boolean> {
    private static final Logger log = LoggerFactory.getLogger(SendEmail.class);
    private static final int TIMEOUT_MS = (int) TimeUnit.MILLISECONDS.convert(30, TimeUnit.SECONDS);

    private ValidatedPrefs prefs;
    private String subject;