Client and backend. Every class listed here is shared: the same code is compiled into your app and into your server.
package java.util.concurrent
Types
class AbstractExecutorService | The ExecutorService methods that need nothing but execute: a subclass provides execution and the life cycle, and gets submit, invokeAll and invokeAny from here. |
interface Callable | A task that answers a result and may throw. |
class CancellationException | Thrown by Future.get when the work was cancelled before it ran. |
class CompletableFuture | java.util.concurrent.CompletableFuture for the Codename One runtime. |
class CompletionException | java.util.concurrent.CompletionException: a stage failed, or the one it depended on did; the cause is the original exception. |
interface CompletionStage | java.util.concurrent.CompletionStage: one step of a computation that others can be attached to. |
class ConcurrentHashMap | java.util.concurrent.ConcurrentHashMap for the Codename One runtime, over a HashMap. |
interface ConcurrentMap | A map whose compound operations are atomic. |
class CopyOnWriteArrayList | java.util.concurrent.CopyOnWriteArrayList for the Codename One runtime. |
class CopyOnWriteArraySet | java.util.concurrent.CopyOnWriteArraySet for the Codename One runtime: a set kept in a CopyOnWriteArrayList, in the order its elements were added. |
class CountDownLatch | java.util.concurrent.CountDownLatch: threads wait until a count reaches zero. |
interface Delayed | Something that is due after a delay, ordered by when it is due. |
class ExecutionException | Thrown by Future.get when the work failed; the cause is what it threw. |
interface Executor | Runs submitted tasks, on a thread of its choosing. |
interface ExecutorService | An Executor that answers a Future for a submitted task and can be shut down. |
class Executors | Factories for the executor services. |
interface Future | The result of work that finishes later – on the backend, what an @Async method returns, completed when its body has run on its executor. |
class FutureTask | A cancellable computation whose result is read through Future. |
class RejectedExecutionException | Thrown by an Executor that does not accept a task, typically because it has been shut down. |
interface RunnableFuture | A Future that is also the task computing it: running it completes it. |
interface ScheduledExecutorService | java.util.concurrent.ScheduledExecutorService: an executor that also runs work after a delay, or again and again. |
interface ScheduledFuture | java.util.concurrent.ScheduledFuture: the result of work an executor was asked to run later. |
interface ThreadFactory | Makes the threads an executor runs its tasks on. |
class ThreadLocalRandom | |
enum TimeUnit | Compile-time API for time units. |
class TimeoutException | Thrown by Future.get(long, TimeUnit) when the work has not finished in time. |