package concurrent
- Alphabetic
- Public
- Protected
Type Members
- abstract class AbstractExecutorService extends ExecutorService
- class ArrayBlockingQueue[E <: AnyRef] extends AbstractQueue[E] with BlockingQueue[E] with Serializable
- Annotations
- @SerialVersionUID()
- trait BlockingDeque[E] extends BlockingQueue[E] with Deque[E]
- trait BlockingQueue[E] extends Queue[E]
- class BrokenBarrierException extends Exception
- Annotations
- @SerialVersionUID()
- trait Callable[V] extends AnyRef
- class CancellationException extends IllegalStateException
- class CompletionException extends RuntimeException
- Annotations
- @SerialVersionUID()
- trait CompletionService[V] extends AnyRef
- class ConcurrentHashMap[K <: AnyRef, V <: AnyRef] extends AbstractMap[K, V] with ConcurrentMap[K, V] with Serializable
- Annotations
- @SerialVersionUID()
- class ConcurrentLinkedDeque[E <: AnyRef] extends AbstractCollection[E] with Deque[E] with Serializable
- Annotations
- @SerialVersionUID()
- class ConcurrentLinkedQueue[E <: AnyRef] extends AbstractQueue[E] with Queue[E] with Serializable
- Annotations
- @SerialVersionUID()
- trait ConcurrentMap[K, V] extends Map[K, V]
- trait ConcurrentNavigableMap[K, V] extends ConcurrentMap[K, V] with NavigableMap[K, V]
- class ConcurrentSkipListSet[E] extends AbstractSet[E] with NavigableSet[E] with Cloneable with Serializable
- class CopyOnWriteArrayList[E <: AnyRef] extends List[E] with RandomAccess with Cloneable with Serializable
- class CountDownLatch extends AnyRef
- abstract class CountedCompleter[T] extends ForkJoinTask[T]
- class CyclicBarrier extends AnyRef
- trait Delayed extends Comparable[Delayed]
- class ExecutionException extends Exception
- trait Executor extends AnyRef
- class ExecutorCompletionService[V <: AnyRef] extends CompletionService[V]
- trait ExecutorService extends Executor with AutoCloseable
- class Executors extends AnyRef
- class ForkJoinPool extends AbstractExecutorService
- abstract class ForkJoinTask[V] extends Future[V] with Serializable
- class ForkJoinWorkerThread extends Thread
- trait Future[V] extends AnyRef
- class FutureTask[V <: AnyRef] extends RunnableFuture[V]
- class LinkedBlockingQueue[E <: AnyRef] extends AbstractQueue[E] with BlockingQueue[E] with Serializable
- Annotations
- @SerialVersionUID()
- class LinkedTransferQueue[E <: AnyRef] extends AbstractQueue[E] with TransferQueue[E] with Serializable
- Annotations
- @SerialVersionUID()
- class PriorityBlockingQueue[E <: AnyRef] extends AbstractQueue[E] with BlockingQueue[E] with Serializable
- Annotations
- @SuppressWarnings() @SerialVersionUID()
- abstract class RecursiveAction extends ForkJoinTask[Void]
- abstract class RecursiveTask[V] extends ForkJoinTask[V]
- class RejectedExecutionException extends RuntimeException
- trait RejectedExecutionHandler extends AnyRef
- trait RunnableFuture[V] extends Runnable with Future[V]
- trait RunnableScheduledFuture[V] extends RunnableFuture[V] with ScheduledFuture[V]
- trait ScheduledExecutorService extends ExecutorService
- trait ScheduledFuture[V] extends Delayed with Future[V]
- class ScheduledThreadPoolExecutor extends ThreadPoolExecutor with ScheduledExecutorService
- class Semaphore extends Serializable
- Annotations
- @SerialVersionUID()
- class SynchronousQueue[E <: AnyRef] extends AbstractQueue[E] with BlockingQueue[E] with Serializable
- trait ThreadFactory extends AnyRef
- class ThreadLocalRandom extends Random
- Annotations
- @SerialVersionUID()
- class ThreadPoolExecutor extends AbstractExecutorService
- abstract class TimeUnit extends _Enum[TimeUnit]
- class TimeoutException extends Exception
- trait TransferQueue[E] extends BlockingQueue[E]
Value Members
- object ArrayBlockingQueue extends Serializable
- Annotations
- @SerialVersionUID()
- object ConcurrentHashMap extends Serializable
- Annotations
- @SerialVersionUID()
- object ConcurrentLinkedDeque extends Serializable
An unbounded concurrent deque based on linked nodes.
An unbounded concurrent deque based on linked nodes. Concurrent insertion, removal, and access operations execute safely across multiple threads. A
ConcurrentLinkedDeque
is an appropriate choice when many threads will share access to a common collection. Like most other concurrent collection implementations, this class does not permit the use ofnull
elements.Iterators and spliterators are <a href="package-summary.html#Weakly">weakly consistent.
Beware that, unlike in most collections, the
size
method is NOT a constant-time operation. Because of the asynchronous nature of these deques, determining the current number of elements requires a traversal of the elements, and so may report inaccurate results if this collection is modified during traversal. Additionally, the bulk operationsaddAll
,removeAll
,retainAll
,containsAll
,equals
, andtoArray
are not guaranteed to be performed atomically. For example, an iterator operating concurrently with anaddAll
operation might view only some of the added elements.This class and its iterator implement all of the optional methods of the
Deque
andIterator
interfaces.Memory consistency effects: As with other concurrent collections, actions in a thread prior to placing an object into a
ConcurrentLinkedDeque
happen-before actions subsequent to the access or removal of that element from theConcurrentLinkedDeque
in another thread.This class is a member of the Java Collections Framework.
- Annotations
- @SerialVersionUID()
- Since
1.7
- object ConcurrentLinkedQueue extends Serializable
- Annotations
- @SerialVersionUID()
- object CountDownLatch
- object CyclicBarrier
- object ExecutorCompletionService
- object Executors
- object Flow
- object ForkJoinPool
- object ForkJoinTask extends Serializable
- object Future
- object FutureTask
- object Helpers
Shared implementation code for java.util.concurrent.
- object LinkedBlockingQueue extends Serializable
- Annotations
- @SerialVersionUID()
- object LinkedTransferQueue extends Serializable
- Annotations
- @SerialVersionUID()
- object PriorityBlockingQueue extends Serializable
- Annotations
- @SerialVersionUID()
- object ScheduledThreadPoolExecutor
- object Semaphore extends Serializable
- object SynchronousQueue extends Serializable
A blocking queue in which each insert operation must wait for a corresponding remove operation by another thread, and vice versa.
A blocking queue in which each insert operation must wait for a corresponding remove operation by another thread, and vice versa. A synchronous queue does not have any internal capacity, not even a capacity of one. You cannot
peek
at a synchronous queue because an element is only present when you try to remove it; you cannot insert an element (using any method) unless another thread is trying to remove it; you cannot iterate as there is nothing to iterate. The head of the queue is the element that the first queued inserting thread is trying to add to the queue; if there is no such queued thread then no element is available for removal andpoll()
will returnnull
. For purposes of otherCollection
methods (for examplecontains
), aSynchronousQueue
acts as an empty collection. This queue does not permitnull
elements.Synchronous queues are similar to rendezvous channels used in CSP and Ada. They are well suited for handoff designs, in which an object running in one thread must sync up with an object running in another thread in order to hand it some information, event, or task.
This class supports an optional fairness policy for ordering waiting producer and consumer threads. By default, this ordering is not guaranteed. However, a queue constructed with fairness set to
true
grants threads access in FIFO order.This class and its iterator implement all of the optional methods of the
Collection
andIterator
interfaces.This class is a member of the <a href="/java.base/java/util/package-summary.html#CollectionsFramework"> Java Collections Framework.
- Annotations
- @SerialVersionUID()
- Since
1.5
- object ThreadLocalRandom extends Serializable
- Annotations
- @SerialVersionUID()
- object ThreadPoolExecutor
- object TimeUnit extends Serializable