List of usage examples for java.util.concurrent Callable interface-usage
From source file com.engine.biomine.indexing.tasks.IndexDocsTask.java
/** * * @author ludovic */ public class IndexDocsTask implements Callable<Boolean> {
From source file org.galicaster.dashboard.snapshot.GstreamerSnapshotTaker.java
/** * This class implements a simple "snapshot taker" based on a Gstramer pipeline that connects via VNC to capture the screen * */ public class GstreamerSnapshotTaker implements Callable<File> {
From source file com.espertech.esper.multithread.SendEventWaitCallable.java
public class SendEventWaitCallable implements Callable { private final int threadNum; private final EPServiceProvider engine; private final Iterator<Object> events; private final Object sendLock; private boolean isShutdown;
From source file com.espertech.esper.multithread.SendEventRWLockCallable.java
public class SendEventRWLockCallable implements Callable { private final int threadNum; private final EPServiceProvider engine; private final Iterator<Object> events; private final ReentrantReadWriteLock sharedStartLock;
From source file com.cloudera.oryx.kmeans.computation.local.SamplingRun.java
public final class SamplingRun implements Callable<Collection<RealVector>> { private final KSketchIndex index; private final RandomGenerator random; private final int foldId; private final List<RealVector> vecs;
From source file com.espertech.esper.multithread.StmtNamedWindowMergeCallable.java
public class StmtNamedWindowMergeCallable implements Callable<Boolean> { private final EPRuntimeSPI engine; private final int numEvents; public StmtNamedWindowMergeCallable(EPServiceProvider engine, int numEvents) { this.engine = (EPRuntimeSPI) engine.getEPRuntime();
From source file Main.java
class TimeSliceTask implements Callable<String> { long timeToLive; long duration; public TimeSliceTask(final long timeToLive, final TimeUnit timeUnit) { this.timeToLive = System.nanoTime() + timeUnit.toNanos(timeToLive);
From source file org.arrow.service.engine.concurrent.SaveNodeCallable.java
/**
* {@link Callable} implementation used to store {@link BpmnNodeEntity}
* instances.
*
* @author christian.weber
* @since 1.0.0
From source file ddf.catalog.resource.download.ProductDownloadClient.java
public class ProductDownloadClient implements Callable<ByteArrayOutputStream> { private static final Logger LOGGER = LoggerFactory.getLogger(ProductDownloadClient.class); private InputStream inputStream;
From source file com.espertech.esper.multithread.StmtInsertIntoCallable.java
public class StmtInsertIntoCallable implements Callable { private final EPServiceProvider engine; private final int numRepeats; private final String threadKey; public StmtInsertIntoCallable(String threadKey, EPServiceProvider engine, int numRepeats) {