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.AssignmentRun.java

public final class AssignmentRun implements Callable<List<WeightedRealVector>> {

    private final KSketchIndex index;
    //private final RandomGenerator random;
    private final int foldId;
    private final List<RealVector> vecs;

From source file dk.ange.octave.exec.OctaveReaderCallable.java

/**
 * Callable that reads from the octave process
 */
final class OctaveReaderCallable implements Callable<Void> {

    private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory

From source file org.sourcepit.common.utils.zip.SingleZipPartitionProcessor.java

public class SingleZipPartitionProcessor implements Callable<Integer> {
    protected final ZipInputStreamFactory streamFactory;

    protected final ZipEntryHandler entryHandler;

    public SingleZipPartitionProcessor(ZipInputStreamFactory streamFactory, ZipEntryHandler entryHandler) {

From source file com.pinterest.deployservice.common.NotificationJob.java

public final class NotificationJob implements Callable<Void> {
    private static final Logger LOG = LoggerFactory.getLogger(NotificationJob.class);
    private String message;
    private String subject;
    private String recipients;
    private String chatrooms;

From source file net.jmhertlein.mcanalytics.api.request.Request.java

/**
 * Request represents a request that the client might make of the server.
 *
 * This represents a base class that handles getting request IDs and calling the processResponse
 * method when the server's response to it comes back.
 *

From source file Main.java

class MyCallable implements Callable<String> {
    int id;

    public MyCallable(int id) {
        this.id = id;
    }

From source file c3.ops.priam.utils.RetryableCallable.java

public abstract class RetryableCallable<T> implements Callable<T> {
    public static final int DEFAULT_NUMBER_OF_RETRIES = 15;
    public static final long DEFAULT_WAIT_TIME = 100;
    private static final Logger logger = LoggerFactory.getLogger(RetryableCallable.class);
    private int retrys;
    private long waitTime;

From source file com.netflix.priam.utils.RetryableCallable.java

public abstract class RetryableCallable<T> implements Callable<T> {
    private static final Logger logger = LoggerFactory.getLogger(RetryableCallable.class);
    public static final int DEFAULT_NUMBER_OF_RETRIES = 15;
    public static final long DEFAULT_WAIT_TIME = 100;
    private int retrys;
    private long waitTime;

From source file com.netflix.raigad.utils.RetryableCallable.java

public abstract class RetryableCallable<T> implements Callable<T> {
    private static final Logger logger = LoggerFactory.getLogger(RetryableCallable.class);
    public static final int DEFAULT_NUMBER_OF_RETRIES = 15;
    public static final long DEFAULT_WAIT_TIME = 100;
    private int retrys;
    private long waitTime;

From source file nblair.pipeline.PipelineStepCallable.java

/**
 * Abstract supertype for {@link Callable}s used in the {@link AbstractParallelPipelineStep}s.
 * 
 * @author Nicholas Blair
 */
public abstract class PipelineStepCallable<W> implements Callable<W> {