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

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

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

From source file org.apache.hadoop.hdfs.server.namenode.JournalSetWorker.java

/**
 * JournalSetWorker applies JournalClosure operation on JournalAndStream. It is
 * submitted as a task to an executor, the call method return the journal in
 * case of failure, so we can handle it outside.
 */
class JournalSetWorker implements Callable<JournalAndStream> {

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

public class IsolateUnisolateCallable implements Callable {
    private final int threadNum;
    private final EPServiceProvider engine;
    private final int loopCount;

    public IsolateUnisolateCallable(int threadNum, EPServiceProvider engine, int loopCount) {

From source file org.veronicadb.core.server.VServer.java

public class VServer implements Callable<Void> {

    private static final Logger logger = Logger.getLogger("VServer");
    private static final String ALL_ADDRESSES = "0.0.0.0";
    private static final String PROP_BIND_HOST = "bind.address";
    private static final String PROP_BIND_PORT = "bind.port";

From source file org.clickframes.engine.AppspecWorker.java

/**
 * Thread wrapper for CodeGenerator calls.
 * Allows us to generate templates in parallel.
 * @author Steven Boscarine
 *
 */

From source file com.clustercontrol.repository.NodeSearchTask.java

/**
 * ???
 */
public class NodeSearchTask implements Callable<NodeInfoDeviceSearch> {

    private static Log m_log = LogFactory.getLog(NodeSearchTask.class);

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

public class StmtNamedWindowQueryCallable implements Callable {
    private final EPRuntimeSPI engine;
    private final int numRepeats;
    private final String threadKey;

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

From source file com.pinterest.deployservice.handler.WebhookJob.java

public class WebhookJob implements Callable<Void> {
    private static final Logger LOG = LoggerFactory.getLogger(WebhookJob.class);
    private List<WebHookBean> webhooks;
    private DeployBean deployBean;
    private EnvironBean envBean;
    private HTTPClient httpClient;

From source file org.mule.module.mongo.tools.IncrementalOplogDump.java

public class IncrementalOplogDump implements Callable<Void> {
    private static final String INCREMENTAL_LAST_TIMESTAMP = "incremental_last_timestamp.txt";

    private Map<String, DB> dbs = new HashMap<String, DB>();
    private String incrementalTimestampFile;
    private String outputDirectory;

From source file com.espertech.esper.epl.variable.VariableServiceCallable.java

public class VariableServiceCallable implements Callable {
    private static final Log log = LogFactory.getLog(VariableServiceCallable.class);
    private final Random random;
    private final String[] variables;
    private final VariableReader[] readers;
    private final VariableService variableService;