Package java.util.concurrent
package java.util.concurrent
-
ClassDescriptionThe
ExecutorServicemethods that need nothing butexecute: a subclass provides execution and the life cycle, and getssubmit,invokeAllandinvokeAnyfrom here.Callable<V>A task that answers a result and may throw.Thrown byFuture.get()when the work was cancelled before it ran.java.util.concurrent.CompletableFuturefor the Codename One runtime.java.util.concurrent.CompletionException: a stage failed, or the one it depended on did; the cause is the original exception.java.util.concurrent.CompletionStage: one step of a computation that others can be attached to.ConcurrentHashMap<K,V> java.util.concurrent.ConcurrentHashMapfor the Codename One runtime, over aHashMap.java.util.concurrent.ConcurrentHashMap.KeySetView: the keys of a map as a set.ConcurrentMap<K,V> A map whose compound operations are atomic.java.util.concurrent.CopyOnWriteArrayListfor the Codename One runtime.java.util.concurrent.CopyOnWriteArraySetfor the Codename One runtime: a set kept in aCopyOnWriteArrayList, in the order its elements were added.java.util.concurrent.CountDownLatch: threads wait until a count reaches zero.Something that is due after a delay, ordered by when it is due.Thrown byFuture.get()when the work failed; the cause is what it threw.Runs submitted tasks, on a thread of its choosing.Factories for the executor services.Future<V>The result of work that finishes later -- on the backend, what an@Asyncmethod returns, completed when its body has run on its executor.FutureTask<V>A cancellable computation whose result is read throughFuture.Thrown by anExecutorthat does not accept a task, typically because it has been shut down.AFuturethat is also the task computing it: running it completes it.java.util.concurrent.ScheduledExecutorService: an executor that also runs work after a delay, or again and again.java.util.concurrent.ScheduledFuture: the result of work an executor was asked to run later.Makes the threads an executor runs its tasks on.Thrown byFuture.get(long, TimeUnit)when the work has not finished in time.Compile-time API for time units.