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 org.knime.al.nodes.score.novelty.localnoveltyscorer.NoveltyScoreCalculationCallable.java

public class NoveltyScoreCalculationCallable implements Callable<Double> {

    private final int m_index;
    private final Semaphore m_semaphore;
    private final int m_numNeighbors;
    private final RealMatrix m_trainingKernelMatrix;

From source file org.silverpeas.migration.jcr.wysiwyg.purge.WysiwygDocumentPurger.java

/**
 * Purge treatment.
 */
class WysiwygDocumentPurger implements Callable<WysiwygDocumentPurger.Result> {

    private final String componentId;

From source file org.apache.gobblin.runtime.SafeDatasetCommit.java

/**
 * {@link Callable} that commits a single dataset. The logic in this class is thread-safe, however, it calls
 * {@link DataPublisher#publish(Collection)}. This class is thread-safe if and only if the implementation of
 * {@link DataPublisher} used is also thread-safe.
 */
@RequiredArgsConstructor

From source file de.escidoc.core.common.business.fedora.resources.create.ComponentCreate.java

/**
 * Component for create method.
 * <p/>
 * Attention! This is only a helper class for the transition to integrate this functionality into the Component class.
 *
 * @author Steffen Wagner

From source file com.amazonaws.mobileconnectors.s3.transfermanager.internal.UploadCallable.java

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

From source file com.epam.dlab.automation.test.TestCallable.java

public class TestCallable implements Callable<Boolean> {
    private final static Logger LOGGER = LogManager.getLogger(TestCallable.class);

    private final String notebookTemplate;
    private final boolean fullTest;
    private final String token, ssnExpEnvURL, ssnProUserResURL, ssnCompResURL;

From source file org.silverpeas.migration.jcr.attachment.AttachmentMigration.java

/**
 * An optimized alternative to the ComponentAttachmentMigrator class for migrating in the JCR all
 * the non-versioned attachments within a given component instance.
 *
 * @author mmoquillon
 */

From source file com.opengamma.integration.viewer.status.impl.ViewStatusCalculationTask.java

/**
 * View status calculation task
 */
public class ViewStatusCalculationTask implements Callable<PerViewStatusResult> {

    private final class ViewStatusResultListener extends AbstractViewResultListener {

From source file org.silverpeas.migration.jcr.version.VersionedDocumentMigration.java

/**
 * An optimized alternative to the ComponentDocumentMigrator class for migrating in the JCR all the
 * versioned documents within a given component instance.
 *
 * @author mmoquillon
 */

From source file net.cliseau.composer.javatarget.PointcutParseException.java

/**
 * Class for generating and weaving CliSeAu aspects from pointcut definitions.
 *
 * An AspectWeaver object generates AOP aspects from a pointcut definition
 * and two templates for aspects and advices. For working with the templates are
 * stored in files and processed with the help of the StringTemplate library.