List of usage examples for java.util.concurrent Callable interface-usage
From source file com.skcraft.launcher.update.Updater.java
@Log public class Updater extends BaseUpdater implements Callable<Instance>, ProgressObservable { private final ObjectMapper mapper = new ObjectMapper(); private final Installer installer; private final Launcher launcher;
From source file org.rhq.core.pc.measurement.MeasurementSenderRunner.java
/** * @author Greg Hinkle */ public class MeasurementSenderRunner implements Callable<MeasurementReport>, Runnable { private static final Log LOG = LogFactory.getLog(MeasurementSenderRunner.class);
From source file org.apache.hadoop.hbase.master.RetryableMetaOperation.java
/** * Uses Callable pattern so that operations against meta regions do not need * to duplicate retry logic. */ abstract class RetryableMetaOperation<T> implements Callable<T> { protected final Log LOG = LogFactory.getLog(this.getClass());
From source file com.amazonaws.mobileconnectors.s3.transferutility.DownloadTask.java
/** * Performs download operation and returns a Boolean value indicating whether * the file has been downloaded successfully. */ class DownloadTask implements Callable<Boolean> {
From source file me.ixfan.wechatkit.token.ObtainAccessTokenCallableJob.java
/**
* ? access_token Callable Job. ??? <code>ScheduledExecutorService</code>
* , ??? access_token ?. access_token
* 2?.
*
* Created by xfan on 16/3/26.
From source file com.anrisoftware.sscontrol.scripts.localuser.LocalGroupAdd.java
/**
* Adds the local group.
*
* @author Erwin Mueller, erwin.mueller@deventm.org
* @since 1.0
*/
From source file com.anrisoftware.sscontrol.scripts.pack.Pack.java
/**
* Archive from specified files.
*
* @author Erwin Mueller, erwin.mueller@deventm.org
* @since 1.0
*/
From source file com.github.viktornar.task.PrintTask.java
public class PrintTask implements Callable<String> { private Logger logger = LoggerFactory.getLogger(PrintTask.class); private String port; private String hostname; private String contextPath;
From source file info.pancancer.arch3.worker.WorkflowRunner.java
/**
* This class will make a command-line call to run a workflow. <br/>
* The actual command to execute should be specified using setCommandLine. <br/>
* It is also possible to specify a brief delay before and after the command is executed, using setPreworkDelay and setPostworkDelay.
*
* @author sshorser
From source file net.bemacized.enderauth.discordbot.mccache.NameFetcher.java
public class NameFetcher implements Callable<Map<UUID, NameFetcher.Lookup<NameFetcher.NameHistory>>> { private static final String PROFILE_URL = "https://api.mojang.com/user/profiles/%s/names"; private final List<UUID> uuids; public NameFetcher(List<UUID> uuids) { this.uuids = new ArrayList<>(uuids);