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.espertech.esper.multithread.VariableReadWriteCallable.java

public class VariableReadWriteCallable implements Callable {
    private final EPServiceProvider engine;
    private final int numRepeats;
    private final int threadNum;
    private final SupportUpdateListener selectListener;

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

/**
 * Compute the size in terms of number of files.
 */
public class FileNumberComputer implements Callable<DirectoryStats> {

    private final File directory;

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

public class StmtJoinCallable implements Callable {
    private final int threadNum;
    private final EPServiceProvider engine;
    private final EPStatement stmt;
    private final int numRepeats;

From source file org.fusesource.fabric.camel.ZKComponentSupport.java

/**
 */
public abstract class ZKComponentSupport extends DefaultComponent implements Callable<CuratorFramework> {
    private static final transient Log LOG = LogFactory.getLog(MasterComponent.class);
    private static final String ZOOKEEPER_URL = "zookeeper.url";
    private static final String ZOOKEEPER_PASSWORD = "zookeeper.password";

From source file org.rhq.core.pc.content.ContentDiscoveryRunner.java

/**
* Thread run by the {@link ContentManager} to perform content discoveries. Much of the logic in these discoveries takes
* place in that manager; this is largely just a <code>Runnable</code> implementation in order to thread the
* discoveries.
*
* @author Jason Dobies

From source file org.j2free.http.HttpCallable.java

/**
 * Implementation of Callable that takes a HttpCallTask and,
 * when called, returns the result of the task as a HttpCallResult.
 *
 * This class is should never be access outside of <tt>QueuedHttpCallService</tt>
 *

From source file org.openengsb.connector.maven.internal.ProcessOutputReader.java

/**
 * Utility class writing an inputStream (mostly from an process) always into a string and optionally into a log file, if
 * you use the {@link #ProcessOutputReader(InputStream, File)} constructor.
 */
public class ProcessOutputReader implements Callable<String> {

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

/** Calculate instances of each service domain, sub domain combination **/
public class InstanceCountCallable implements Callable<Boolean> {

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

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

public class StmtDatabaseJoinCallable implements Callable {
    private final EPServiceProvider engine;
    private final EPStatement stmt;
    private final int numRepeats;
    private final String[] MYVARCHAR_VALUES = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" };

From source file org.hibernate.shards.strategy.access.ParallelShardOperationCallable.java

/**
 * Runs a single operation on a single shard, collecting the result of the
 * operation with an ExitStrategy.  The interesting bit here is that
 * if the ExitStrategy indicates that there is no more work to be performed,
 * this object has the ability to cancel the work being performed by all the
 * other threads.