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 ThreadTester.java

class RandomPrimeSearch implements Callable<BigInteger> {

    private static final Random prng = new SecureRandom();
    private int bitSize;

    public RandomPrimeSearch(int bitSize) {

From source file com.foo.manager.commonManager.thread.HttpHandleThread.java

@Service
public class HttpHandleThread implements Callable<Object> {
    @Resource
    private static CommonManagerMapper commonManagerMapper;
    @Resource
    private static SNCommonManagerMapper snCommonManagerMapper;

From source file edu.stanford.epad.epadws.processing.pipeline.task.PackedPngTask.java

/**
 * Creates a packed PNG file based. DicomReader code is from Bradley Ross.
 * 
 * @see edu.stanford.epad.common.dicom.DicomReader#main
 */
public class PackedPngTask implements Callable<File> {

From source file edu.isi.wings.execution.engine.api.impl.distributed.DistributedExecutionEngine.java

class MachineUploadLister implements Callable<ArrayList<String[]>>, Serializable {
    private static final long serialVersionUID = 5960512182954001309L;

    ArrayList<String[]> totalList;
    ArrayList<String[]> uploadList;

From source file com.all.login.LoginApplication.java

public class LoginApplication extends DefaultApplication<User> implements Callable<User> {
    private static final Log log = LogFactory.getLog(LoginApplication.class);
    private LoginModule loginModule;

    public LoginApplication() {
        super();

From source file org.apache.axis2.jaxws.client.async.CallbackFuture.java

class CallbackFutureTask implements Callable {

    private static final Log log = LogFactory.getLog(CallbackFutureTask.class);
    private static final boolean debug = log.isDebugEnabled();

    AsyncResponse response;

From source file gda.device.detector.addetector.HardwareTriggerableADDetector.java

/**
 * A Callable suitable for return by {@link PositionCallableProvider#getPositionCallable()} for {@link NexusDetector}s
 * while operated in a mode where a NexusTreeProvider can be generated in the main scan thread. The image acquisition
 * associated with an instance is assumed to be complete when the instance is created.
 */
class CompletedExposurePositionCallable implements Callable<NexusTreeProvider> {

From source file com.pseudosurface.levels.template.SimulatorActivity.java

class MovementDriver implements Callable {
    SimulatorActivity simulation;

    public MovementDriver(SimulatorActivity simulation) {
        this.simulation = simulation;
    }

From source file i5.las2peer.services.videoAdapter.AdapterClass.java

class Adapt implements Callable<String> {

    private String searchString;
    private String username;
    private String lat;
    private String lng;

From source file gda.device.detector.NXDetector.java

class NXDetectorDataCompletingCallable implements Callable<NexusTreeProvider> {

    private final NXDetectorData data;

    private final Callable<List<NXDetectorDataAppender>> appendersCallable;