List of usage examples for java.util.concurrent Callable interface-usage
From source file Main.java
class Particle implements Callable<Void> { int id; int calculatedForce; State particleState = State.Update; List<Particle> allTheParticles;
From source file me.gamingtest.de.Util.UUIDFetcher.java
public class UUIDFetcher implements Callable<Map<String, UUID>> { private static final double PROFILES_PER_REQUEST = 100; private static final String PROFILE_URL = "https://api.mojang.com/profiles/minecraft"; private final JSONParser jsonParser = new JSONParser(); private final List<String> names; private final boolean rateLimiting;
From source file org.force66.circuit.CallableCircuit.java
/**
* Implements the circuit breaker pattern as a Callable so that it can be
* combined easily with other utilities.
*
* @author D. Ashmore
* @since 1.0.0-rc2
From source file org.sipfoundry.sipxconfig.configdiag.ConfigurationDiagnostic.java
public class ConfigurationDiagnostic implements Callable<Integer> { private String m_name; private String m_label; private String m_description; private String m_longDescription;
From source file org.sipfoundry.sipxconfig.admin.configdiag.ConfigurationDiagnostic.java
public class ConfigurationDiagnostic implements Callable<Integer> { private String m_name; private String m_label; private String m_description; private String m_longDescription;
From source file reconf.infra.http.layer.RequestTask.java
public class RequestTask implements Callable<SimpleHttpResponse> { private final CloseableHttpClient httpClient; private final HttpUriRequest request; public RequestTask(CloseableHttpClient httpClient, HttpUriRequest request) {
From source file fr.inria.edelweiss.kgdqp.core.CallableResult.java
/**
* Helper class to handle the retrieveing of results when getEdges() or
* getMappings() are parallelized.
*
* Merging of CallableGetEdges() and CallableGetMappings()
*
From source file com.yimidida.shards.strategy.access.impl.ParallelShardOperationCallable.java
/**
* Runs a single operation on a single shard, collecting the result of the
* operation with an ExitStrategy. The interesting bit here is that
* if the ExitStrategy indicates that there is no more work to be performed,
* this object has the ability to cancel the work being performed by all the
* other threads.
From source file org.makersoft.shards.strategy.access.impl.ParallelShardOperationCallable.java
/**
* Runs a single operation on a single shard, collecting the result of the
* operation with an ExitStrategy. The interesting bit here is that
* if the ExitStrategy indicates that there is no more work to be performed,
* this object has the ability to cancel the work being performed by all the
* other threads.
From source file fr.inria.atlanmod.neoemf.benchmarks.query.Query.java
/** * @param <V> the result type of method {@code call} */ @FunctionalInterface public interface Query<V> extends Callable<V> {