Example usage for java.util.concurrent Callable interface-usage

List of usage examples for java.util.concurrent Callable interface-usage

Introduction

In this page you can find the example usage for java.util.concurrent Callable interface-usage.

Usage

From source file com.anrisoftware.prefdialog.dialogaction.AbstractDialogAction.java

/**
 * Creates a simple dialog in a background thread, opens it and waits for the
 * dialog to be canceled or approved. The dialog is only created if all
 * dependencies are set.
 *
 * @author Erwin Mueller, erwin.mueller@deventm.org

From source file eu.europa.esig.dss.tsl.service.TSLValidator.java

/**
 * This class allows to validate TSL or LOTL. It can be executed as a Callable.
 */
public class TSLValidator implements Callable<TSLValidationResult> {

    private static final Logger logger = LoggerFactory.getLogger(TSLValidator.class);

From source file pt.lunacloud.services.storage.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 de.fiz.ddb.aas.auxiliaryoperations.ThreadOrganisationSetApprove.java

/**
 *
 * @author bkl
 */
public class ThreadOrganisationSetApprove extends LDAPEngineUtilityOrganisation
        implements Callable<Organisation>, Authorizable {

From source file cn.ctyun.amazonaws.services.s3.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.sonar.server.db.migrations.violation.ViolationConverter.java

class ViolationConverter implements Callable<Object> {

    private static final long ONE_YEAR = 365L * 24 * 60 * 60 * 1000;
    private static final Date ONE_YEAR_AGO = new Date(System.currentTimeMillis() - ONE_YEAR);

    private static final String PROJECT_ID = "projectId";

From source file com.sludev.mssqlapplylog.MSSQLApplyLog.java

/**
 * Main job execution thread of the application.
 * 
 * @author Kervin Pierre
 */
public final class MSSQLApplyLog implements Callable<Integer> {

From source file com.joyepay.qrcode.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 com.sina.scs.transfer.internal.UploadCallable.java

public class UploadCallable implements Callable<UploadResult> {
    private final SCS s3;
    private final ExecutorService threadPool;
    private final PutObjectRequest putObjectRequest;
    private String multipartUploadId;
    private final UploadImpl upload;

From source file org.fusesource.fabric.camel.ClusteredSingletonLifecycleStrategy.java

/**
 *
 */
public class ClusteredSingletonLifecycleStrategy
        implements LifecycleStrategy, GroupListener<CamelNodeState>, Callable<CuratorFramework> {