List of usage examples for java.util.concurrent Callable interface-usage
From source file com.ironiacorp.http.impl.httpclient3.PostRequest.java
public class PostRequest implements Callable<HttpJob> { private HttpJob job; private HttpClient client; private List<NameValuePair> parameters;
From source file org.clickframes.engine.AppspecWorker2.java
/**
* Thread wrapper for CodeGenerator calls. Allows us to generate templates in
* parallel.
*
* @author Steven Boscarine
* @author Vineet Manohar
From source file org.silverpeas.silverstatistics.volume.DirectoryWalkerSizeComputer.java
/** * Compute the size in terms of numbr of files and total size of a directory. */ public class DirectoryWalkerSizeComputer implements Callable<DirectoryStats> { private final File directory;
From source file net.cyberninjapiggy.apocalyptic.misc.UUIDFetcher.java
public class UUIDFetcher implements Callable<Map<String, UUID>> { private static final int MAX_SEARCH = 100; private static final String PROFILE_URL = "https://api.mojang.com/profiles/page/"; private static final String AGENT = "minecraft"; private final JSONParser jsonParser = new JSONParser(); private final List<String> names;
From source file org.commonjava.indy.ftest.core.fixture.CallableDelayedDownload.java
public class CallableDelayedDownload implements Callable<CallableDelayedDownload> { private final long initialDelay; private final Indy client; private final StoreKey key; private final String path;
From source file com.espertech.esper.multithread.StmtNamedWindowSubqueryAggCallable.java
public class StmtNamedWindowSubqueryAggCallable implements Callable<Boolean> { private final EPServiceProvider engine; private final int numRepeats; private final int threadNum; private final EPStatement targetStatement;
From source file com.jforex.dzplugin.task.NTPTimeSynchTask.java
public class NTPTimeSynchTask implements Callable<Long> { private final NTPUDPClient timeClient; private InetAddress inetAddress; private TimeInfo timeInfo; private final DZPluginConfig pluginConfig = ConfigFactory.create(DZPluginConfig.class);
From source file org.paxle.crawler.proxy.impl.ProxyDataProviderCallable.java
public class ProxyDataProviderCallable implements Callable<ICrawlerDocument> { /** * For logging */ private final Log logger = LogFactory.getLog(this.getClass());
From source file edu.stolaf.cs.wmrserver.testjob.TestJobTask.java
/** * Runs jobs as test jobs, capturing output from both the mapper and reducer * executables. Since these jobs should only be run with small input, files are * cut off after a certain number of bytes. */ public class TestJobTask implements Callable<TestJobResult> {
From source file io.fabric8.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";