List of usage examples for java.util.concurrent Callable interface-usage
From source file org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache.java
/**
* The base implementation for an asynchronously refreshed cache.
*
* Currently supports one value or a cache per key (such as tenant.) Implementors just need to provide buildCache(String key/tennnantId)
*
* @author Andy
From source file de.fiz.ddb.aas.auxiliaryoperations.ThreadOrganisationUpdate.java
/** * * @author bk */ public class ThreadOrganisationUpdate extends LDAPEngineUtilityOrganisation implements Callable<Organisation>, Authorizable {
From source file com.intellectualcrafters.plot.uuid.NameFetcher.java
/** * Name Fetcher Class From Bukkit */ 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();
From source file org.dishevelled.bio.tools.DownsampleFastq.java
/** * Downsample sequences from files in FASTQ format. * * @author Michael Heuer */ public final class DownsampleFastq implements Callable<Integer> {
From source file org.mobicents.media.server.ctrl.rtsp.SetupAction.java
/** * * @author amit bhayani * */ public class SetupAction implements Callable<FullHttpResponse> {
From source file com.mnxfst.testing.client.TSClientPlanExecCallable.java
/**
* Executes the call to a ptest-server instance and returns a key/value pair containing the hostname and
* the result identifier of the test plan execution initiated through this callable
* @author mnxfst
* @since 12.02.2012
*/
From source file com.amazonaws.mobileconnectors.s3.transfermanager.internal.CopyCallable.java
/**
* An implementation of the Callable interface that helps
* <code>TransferManager</code> in carrying out the copy requests. The call
* method checks if multi-part copy request can be carried out on the Amazon S3
* object. This is done by checking the size of the Amazon S3 object being
* copied.
From source file org.gbif.occurrence.download.file.OccurrenceFileWriterJob.java
/** * Job that creates a part of CSV file. The file is generated according to the fileJob field. */ class OccurrenceFileWriterJob implements Callable<Result> { private static final Logger LOG = LoggerFactory.getLogger(OccurrenceFileWriterJob.class);
From source file com.scaleoutsoftware.soss.hserver.hadoop.SubmittedJob.java
/**
* Job submitted to SOSS hServer from the point of view of the {@link HServerClientProtocol}.
* It parses the staging directory which was prepared for the YARN runner and
* calls {@link JobScheduler} on a separate thread to submit the job.
* The job progress is saved by keeping the {@link Future}.
*/
From source file com.cloud.utils.script.Script.java
public class Script implements Callable<String> { private static final Logger s_logger = Logger.getLogger(Script.class); private final Logger _logger; public static final String ERR_EXECUTE = "execute.error";