List of usage examples for java.util.concurrent Callable interface-usage
From source file com.espertech.esper.multithread.StmtListenerCreateStmtCallable.java
public class StmtListenerCreateStmtCallable implements Callable { private final int numThread; private final EPServiceProvider engine; private final EPStatement statement; private final int numRoutes; private final Set<SupportMarketDataBean> routed;
From source file com.mellanox.jxio.tests.benchmarks.ClientWorker.java
public class ClientWorker implements Callable<double[]> { private final ClientSession cs; private final EventQueueHandler eqh; private final MsgPool pool; private final int in_msgSize; private final int out_msgSize;
From source file com.github.rinde.datgen.pdptw.ScenarioCreator.java
@AutoValue abstract class ScenarioCreator implements Callable<GeneratedScenario> { static final double URGENCY_THRESHOLD = 0.01; public abstract long getId();
From source file com.codelanx.playtime.callable.UUIDFetcher.java
/**
* All credit to evilmidget38!
*
* @since 1.0.0
* @author evilmidget38
* @version 1.0.0
From source file com.turt2live.hurtle.uuid.NameFetcher.java
public class NameFetcher implements Callable<Map<UUID, String>> { private static final String PROFILE_URL = "https://sessionserver.mojang.com/session/minecraft/profile/"; private final JSONParser jsonParser = new JSONParser(); private final List<UUID> uuids;
From source file org.silverpeas.silverstatistics.volume.DirectorySizeComputer.java
/** * Compute the total size of a directory. */ public class DirectorySizeComputer implements Callable<DirectoryStats> { private final File directory;
From source file com.autsia.socialboot.businesslogic.twitter.callables.TwitterCallable.java
/** * Callable for Hazelcast to process tweet on a remote node */ @SpringAware public class TwitterCallable implements Callable<TweetWrapper>, Serializable, HazelcastInstanceAware {
From source file maltcms.ui.fileHandles.serialized.JFCLoader.java
/** * * @author Mathias Wilhelm */ public class JFCLoader implements Callable<JFreeChart> {
From source file org.isharding.shard.strategy.access.impl.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.
From source file com.netflix.curator.framework.recipes.locks.SemaphoreClient.java
class SemaphoreClient implements Callable<Void>, ConnectionStateListener, Closeable { private final CuratorFramework client; private final String semaphorePath; private final Callable<Void> operation; private volatile boolean shouldRun;