List of usage examples for java.util.concurrent Callable interface-usage
From source file com.dattack.dbtools.drules.engine.SourceExecutor.java
/** * @author cvarela * @since 0.1 */ final class SourceExecutor implements Callable<SourceResult> {
From source file me.sonarbeserk.lockup.utils.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 com.sina.cloudstorage.services.scs.transfer.internal.UploadMonitor.java
/**
* Manages an upload by periodically checking to see if the upload is done, and
* returning a result if so. Otherwise, schedules a copy of itself to be run in
* the future and returns null. When waiting on the result of this class via a
* Future object, clients must call {@link UploadMonitor#isDone()} and
* {@link UploadMonitor#getFuture()}
From source file org.apache.hadoop.raid.SmokeTestThread.java
public class SmokeTestThread implements Callable<Boolean> { public static final Log LOG = LogFactory.getLog(SmokeTestThread.class); public static final String TEST_CODEC = "rs"; public static final long NUM_SOURCE_BLOCKS = 3; public static final long BLOCK_SIZE = 512L; public static final long SLEEP_TIME = 3000L;
From source file com.google.zxing.client.android.result.supplement.SupplementalInfoRetriever.java
public abstract class SupplementalInfoRetriever implements Callable<Void> { private static ExecutorService executorInstance = null; private static synchronized ExecutorService getExecutorService() { if (executorInstance == null) {
From source file at.diamonddogs.net.WebClient.java
/** * An abstract {@link WebClient} to be used when implementing new * {@link WebClient} flavours */ public abstract class WebClient implements Callable<ReplyAdapter> {
From source file uk.ac.sanger.cgp.wwdocker.callable.Docker.java
/** * * @author kr2 */ public class Docker implements Callable<Integer> { private static final Logger logger = LogManager.getLogger();
From source file com.threadswarm.imagefeedarchiver.processor.RssItemProcessor.java
public class RssItemProcessor implements Callable<ProcessedRssItem> { private final static Logger LOGGER = LoggerFactory.getLogger(RssItemProcessor.class); private final HttpClient httpClient; private final RssItem rssItem;
From source file org.apache.hadoop.hbase.procedure.Procedure.java
/**
* A globally-barriered distributed procedure. This class encapsulates state and methods for
* tracking and managing a distributed procedure, as well as aborting if any member encounters
* a problem or if a cancellation is requested.
* <p>
* All procedures first attempt to reach a barrier point with the {@link #sendGlobalBarrierStart()}
From source file ThreadPoolTest.java
/** * This task counts the files in a directory and its subdirectories that contain * a given keyword. */ class MatchCounter implements Callable<Integer> { /**