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.immutables.gson.stream.JsonGeneratorWriter.java

/**
 * {@link JsonWriter} impementation backed by Jackson's {@link JsonGenerator}.
 * Provides measurable JSON writing improvements over Gson's native implementation.
 * Error reporting is might differ, however.
 */
@NotThreadSafe

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

public class StmtSubqueryCallable implements Callable {
    private final int threadNum;
    private final EPServiceProvider engine;
    private final int numRepeats;

    public StmtSubqueryCallable(int threadNum, EPServiceProvider engine, int numRepeats) {

From source file org.compass.core.lucene.engine.transaction.support.CommitCallable.java

/**
 * A simple callable that commits an index writer for a given sub index.
 *
 * @author kimchy
 */
public class CommitCallable implements Callable {

From source file org.moneta.dao.SqlSelectExecutor.java

class SqlSelectExecutor implements Callable<SearchResult> {

    private Topic topic;
    private SqlStatement sqlStmt;
    private Long maxRows = null;
    private Long startRow = null;

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

public class StmtNamedWindowConsumeCallable implements Callable {
    private final EPServiceProvider engine;
    private final int numRepeats;
    private final String threadKey;

    public StmtNamedWindowConsumeCallable(String threadKey, EPServiceProvider engine, int numRepeats) {

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

/** Calculate pending instances of each service domain, sub domain combination **/
public class PendingInstanceCountCallable implements Callable<Integer> {

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

From source file com.amazonaws.mobileconnectors.s3.transferutility.UploadPartTask.java

class UploadPartTask implements Callable<Boolean> {
    private static final Log LOGGER = LogFactory.getLog(UploadPartTask.class);

    private final UploadPartRequest request;
    private final AmazonS3 s3;
    private final TransferDBUtil dbUtil;

From source file com.amazonaws.services.kinesis.multilang.LineReaderTask.java

/**
 * This abstract class captures the process of reading from an input stream. Three methods must be provided for
 * implementations to work.
 * <ol>
 * <li> {@link #handleLine(String)}</li>
 * <li> {@link #returnAfterEndOfInput()}</li>

From source file com.ironiacorp.http.impl.httpclient3.GetRequest.java

public class GetRequest implements Callable<HttpJob> {
    private HttpJob job;

    private HttpClient client;

    public GetRequest(HttpClient client, HttpJob job) {

From source file tradeofffigure4.TradeoffWorkerClass.java

/**
 * see the main class for last modified dates and information ...
 * @author wchen
 */
public class TradeoffWorkerClass implements Callable<String> {