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.wso2.carbon.identity.provisioning.ProvisioningThread.java

public class ProvisioningThread implements Callable<Boolean> {

    private ProvisioningEntity provisioningEntity;
    private String tenantDomainName;
    private AbstractOutboundProvisioningConnector connector;
    private String connectorType;

From source file net.myrrix.online.eval.ParameterOptimizer.java

/**
 * <p>This is an experimental utility class which can find a nearly-optimal set of learning algorithm parameters,
 * for a given set of parameters and range of values, and a given metric to optimize. It simply performs an  
 * exhaustive search.</p>
 * 
 * <p>It can be run on the command line with:</p>

From source file com.appdynamics.extensions.elasticsearch.QueryMonitorTask.java

public class QueryMonitorTask implements Callable<QueryMetrics> {

    private SimpleHttpClient httpClient;
    private ElasticSearchRequest esRequest;
    private static final String SEARCH_JSON_URI = "_search?pretty";
    private static final Logger logger = Logger.getLogger(QueryMonitorTask.class);

From source file com.gmail.ferusgrim.util.NameGrabber.java

public class NameGrabber implements Callable<Map<UUID, String>> {

    private final List<UUID> uuidsToLookup;

    public NameGrabber(List<UUID> uuidsToLookup) {
        this.uuidsToLookup = ImmutableList.copyOf(uuidsToLookup);

From source file com.anrisoftware.sscontrol.scripts.changefile.ChangeFileMod.java

/**
 * Change the mode of the file.
 * 
 * @author Erwin Mueller, erwin.mueller@deventm.org
 * @since 1.0
 */

From source file com.jillesvangurp.httpclientfuture.HttpClientCallable.java

final class HttpClientCallable<V> implements Callable<V> {

    private final ResponseHandler<V> responseHandler;

    private final HttpUriRequest request;

From source file com.anrisoftware.sscontrol.scripts.changefile.ChangeFileOwner.java

/**
 * Change the owner of the file.
 * 
 * @author Erwin Mueller, erwin.mueller@deventm.org
 * @since 1.0
 */

From source file com.anrisoftware.sscontrol.scripts.localuser.LocalChangeUser.java

/**
 * Modifies the local user.
 *
 * @author Erwin Mueller, erwin.mueller@deventm.org
 * @since 1.0
 */

From source file com.anrisoftware.sscontrol.scripts.localuser.LocalChangeGroup.java

/**
 * Modifies the local group.
 * 
 * @author Erwin Mueller, erwin.mueller@deventm.org
 * @since 1.0
 */

From source file net.kaikk.mc.uuidprovider.NameFetcher.java

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();
    private final List<UUID> uuids;

    public NameFetcher(List<UUID> uuids) {