java.util.concurrent
81 classes of the module java.base.
Load them with:
using {
"java.util.concurrent"
}
AbstractExecutorService#
abstract · extends Object · java.util.concurrent.AbstractExecutorService
Implements: ExecutorService
Methods
| Method | Ring call | Java overloads |
|---|---|---|
awaitTermination | awaitTermination(timeout,unit) | boolean awaitTermination(long timeout, TimeUnit unit) |
close | close() | void close() |
execute | execute(command) | void execute(Runnable command) |
invokeAll | invokeAll(tasks)invokeAll([tasks,timeout,unit])invokeAll([ :tasks = v, :timeout = v, :unit = v ]) | List invokeAll(Collection tasks)List invokeAll(Collection tasks, long timeout, TimeUnit unit) |
invokeAny | invokeAny(tasks)invokeAny([tasks,timeout,unit])invokeAny([ :tasks = v, :timeout = v, :unit = v ]) | Object invokeAny(Collection tasks)Object invokeAny(Collection tasks, long timeout, TimeUnit unit) |
isShutdown | isShutdown() | boolean isShutdown() |
isTerminated | isTerminated() | boolean isTerminated() |
shutdown | shutdown() | void shutdown() |
shutdownNow | shutdownNow() | List shutdownNow() |
submit | submit(task)submit([task,result])submit([ :task = v, :result = v ]) | Future submit(Callable task)Future submit(Runnable task)Future submit(Runnable task, Object result) |
The methods and fields of Object are inherited.
ArrayBlockingQueue#
class · extends AbstractQueue · java.util.concurrent.ArrayBlockingQueue
Implements: BlockingQueue, Serializable
Constructors
new ArrayBlockingQueue(int capacity) |
new ArrayBlockingQueue(int capacity, boolean fair) |
new ArrayBlockingQueue(int capacity, boolean fair, Collection c) |
Ring: new ArrayBlockingQueue(args) uses the constructor with the fewest parameters (at least one); new ArrayBlockingQueue makes the object with the constructor without parameters; the others: (new ArrayBlockingQueue).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Object poll(long timeout, TimeUnit unit) |
@put | @put(e) | void put(Object e) |
drainTo | drainTo(c)drainTo([c,maxElements])drainTo([ :c = v, :maxElements = v ]) | int drainTo(Collection c)int drainTo(Collection c, int maxElements) |
offer | offer(e)offer([e,timeout,unit])offer([ :e = v, :timeout = v, :unit = v ]) | boolean offer(Object e)boolean offer(Object e, long timeout, TimeUnit unit) |
remainingCapacity | remainingCapacity() | int remainingCapacity() |
take | take() | Object take() |
The methods and fields of AbstractQueue are inherited.
BlockingDeque#
interface · java.util.concurrent.BlockingDeque
Extends: BlockingQueue, Deque
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(Consumer action) |
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Object poll(long timeout, TimeUnit unit) |
@pollFirst | @pollFirst([timeout,unit])@pollFirst([ :timeout = v, :unit = v ]) | Object pollFirst(long timeout, TimeUnit unit) |
@pollLast | @pollLast([timeout,unit])@pollLast([ :timeout = v, :unit = v ]) | Object pollLast(long timeout, TimeUnit unit) |
@put | @put(e) | void put(Object e) |
@remove | @remove(o) | boolean remove(Object o) |
@toArray | @toArray(a) | Object[] toArray(Object[] a)Object[] toArray(IntFunction generator) |
add | add(e) | boolean add(Object e) |
addAll | addAll(c) | boolean addAll(Collection c) |
addFirst | addFirst(e) | void addFirst(Object e) |
addLast | addLast(e) | void addLast(Object e) |
clear | clear() | void clear() |
contains | contains(o) | boolean contains(Object o) |
containsAll | containsAll(c) | boolean containsAll(Collection c) |
descendingIterator | descendingIterator() | Iterator descendingIterator() |
drainTo | drainTo(c)drainTo([c,maxElements])drainTo([ :c = v, :maxElements = v ]) | int drainTo(Collection c)int drainTo(Collection c, int maxElements) |
element | element() | Object element() |
equals | equals(o) | boolean equals(Object o) |
getFirst | getFirst() | Object getFirst() |
getLast | getLast() | Object getLast() |
hashCode | hashCode() | int hashCode() |
isEmpty | isEmpty() | boolean isEmpty() |
iterator | iterator() | Iterator iterator() |
offer | offer(e)offer([e,timeout,unit])offer([ :e = v, :timeout = v, :unit = v ]) | boolean offer(Object e)boolean offer(Object e, long timeout, TimeUnit unit) |
offerFirst | offerFirst(e)offerFirst([e,timeout,unit])offerFirst([ :e = v, :timeout = v, :unit = v ]) | boolean offerFirst(Object e)boolean offerFirst(Object e, long timeout, TimeUnit unit) |
offerLast | offerLast(e)offerLast([e,timeout,unit])offerLast([ :e = v, :timeout = v, :unit = v ]) | boolean offerLast(Object e)boolean offerLast(Object e, long timeout, TimeUnit unit) |
parallelStream | parallelStream() | Stream parallelStream() |
peek | peek() | Object peek() |
peekFirst | peekFirst() | Object peekFirst() |
peekLast | peekLast() | Object peekLast() |
poll | poll() | Object poll() |
pollFirst | pollFirst() | Object pollFirst() |
pollLast | pollLast() | Object pollLast() |
pop | pop() | Object pop() |
push | push(e) | void push(Object e) |
putFirst | putFirst(e) | void putFirst(Object e) |
putLast | putLast(e) | void putLast(Object e) |
remainingCapacity | remainingCapacity() | int remainingCapacity() |
remove | remove() | Object remove() |
removeAll | removeAll(c) | boolean removeAll(Collection c) |
removeFirst | removeFirst() | Object removeFirst() |
removeFirstOccurrence | removeFirstOccurrence(o) | boolean removeFirstOccurrence(Object o) |
removeIf | removeIf(filter) | boolean removeIf(Predicate filter) |
removeLast | removeLast() | Object removeLast() |
removeLastOccurrence | removeLastOccurrence(o) | boolean removeLastOccurrence(Object o) |
retainAll | retainAll(c) | boolean retainAll(Collection c) |
reversed | reversed() | Deque reversed() |
size | size() | int size() |
spliterator | spliterator() | Spliterator spliterator() |
stream | stream() | Stream stream() |
take | take() | Object take() |
takeFirst | takeFirst() | Object takeFirst() |
takeLast | takeLast() | Object takeLast() |
toArray | toArray() | Object[] toArray() |
BlockingQueue#
interface · java.util.concurrent.BlockingQueue
Extends: Queue
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(Consumer action) |
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Object poll(long timeout, TimeUnit unit) |
@put | @put(e) | void put(Object e) |
@remove | @remove(o) | boolean remove(Object o) |
@toArray | @toArray(a) | Object[] toArray(Object[] a)Object[] toArray(IntFunction generator) |
add | add(e) | boolean add(Object e) |
addAll | addAll(c) | boolean addAll(Collection c) |
clear | clear() | void clear() |
contains | contains(o) | boolean contains(Object o) |
containsAll | containsAll(c) | boolean containsAll(Collection c) |
drainTo | drainTo(c)drainTo([c,maxElements])drainTo([ :c = v, :maxElements = v ]) | int drainTo(Collection c)int drainTo(Collection c, int maxElements) |
element | element() | Object element() |
equals | equals(o) | boolean equals(Object o) |
hashCode | hashCode() | int hashCode() |
isEmpty | isEmpty() | boolean isEmpty() |
iterator | iterator() | Iterator iterator() |
offer | offer(e)offer([e,timeout,unit])offer([ :e = v, :timeout = v, :unit = v ]) | boolean offer(Object e)boolean offer(Object e, long timeout, TimeUnit unit) |
parallelStream | parallelStream() | Stream parallelStream() |
peek | peek() | Object peek() |
poll | poll() | Object poll() |
remainingCapacity | remainingCapacity() | int remainingCapacity() |
remove | remove() | Object remove() |
removeAll | removeAll(c) | boolean removeAll(Collection c) |
removeIf | removeIf(filter) | boolean removeIf(Predicate filter) |
retainAll | retainAll(c) | boolean retainAll(Collection c) |
size | size() | int size() |
spliterator | spliterator() | Spliterator spliterator() |
stream | stream() | Stream stream() |
take | take() | Object take() |
toArray | toArray() | Object[] toArray() |
BrokenBarrierException#
class · extends Exception · java.util.concurrent.BrokenBarrierException
Constructors
new BrokenBarrierException() |
new BrokenBarrierException(String message) |
Ring: new BrokenBarrierException(args) uses the constructor with the fewest parameters (at least one); new BrokenBarrierException makes the object with the constructor without parameters; the others: (new BrokenBarrierException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Exception are inherited.
Callable#
interface · java.util.concurrent.Callable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@call | @call() | Object call() |
CancellationException#
class · extends IllegalStateException · java.util.concurrent.CancellationException
Constructors
new CancellationException() |
new CancellationException(String message) |
Ring: new CancellationException(args) uses the constructor with the fewest parameters (at least one); new CancellationException makes the object with the constructor without parameters; the others: (new CancellationException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
CompletableFuture#
class · extends Object · java.util.concurrent.CompletableFuture
Implements: Future, CompletionStage
Constructors
new CompletableFuture() |
Ring: new CompletableFuture(args) uses the constructor with the fewest parameters (at least one); new CompletableFuture makes the object with the constructor without parameters; the others: (new CompletableFuture).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@@get | @@get([timeout,unit])@@get([ :timeout = v, :unit = v ]) | Object get(long timeout, TimeUnit unit) |
@get | @get() | Object get() |
acceptEither | acceptEither(other,action) | CompletableFuture acceptEither(CompletionStage other, Consumer action) |
acceptEitherAsync | acceptEitherAsync([other,action])acceptEitherAsync([ :other = v, :action = v ])acceptEitherAsync([other,action,executor])acceptEitherAsync([ :other = v, :action = v, :executor = v ]) | CompletableFuture acceptEitherAsync(CompletionStage other, Consumer action)CompletableFuture acceptEitherAsync(CompletionStage other, Consumer action, Executor executor) |
allOf | allOf(cfs) | static CompletableFuture allOf(CompletableFuture[] cfs) |
anyOf | anyOf(cfs) | static CompletableFuture anyOf(CompletableFuture[] cfs) |
applyToEither | applyToEither(other,fn) | CompletableFuture applyToEither(CompletionStage other, Function fn) |
applyToEitherAsync | applyToEitherAsync([other,fn])applyToEitherAsync([ :other = v, :fn = v ])applyToEitherAsync([other,fn,executor])applyToEitherAsync([ :other = v, :fn = v, :executor = v ]) | CompletableFuture applyToEitherAsync(CompletionStage other, Function fn)CompletableFuture applyToEitherAsync(CompletionStage other, Function fn, Executor executor) |
cancel | cancel(mayInterruptIfRunning) | boolean cancel(boolean mayInterruptIfRunning) |
complete | complete(value) | boolean complete(Object value) |
completeAsync | completeAsync(supplier)completeAsync([supplier,executor])completeAsync([ :supplier = v, :executor = v ]) | CompletableFuture completeAsync(Supplier supplier)CompletableFuture completeAsync(Supplier supplier, Executor executor) |
completedFuture | completedFuture(value) | static CompletableFuture completedFuture(Object value) |
completedStage | completedStage(value) | static CompletionStage completedStage(Object value) |
completeExceptionally | completeExceptionally(ex) | boolean completeExceptionally(Throwable ex) |
completeOnTimeout | completeOnTimeout(value,timeout,unit) | CompletableFuture completeOnTimeout(Object value, long timeout, TimeUnit unit) |
copy | copy() | CompletableFuture copy() |
defaultExecutor | defaultExecutor() | Executor defaultExecutor() |
delayedExecutor | delayedExecutor([delay,unit])delayedExecutor([ :delay = v, :unit = v ])delayedExecutor([delay,unit,executor])delayedExecutor([ :delay = v, :unit = v, :executor = v ]) | static Executor delayedExecutor(long delay, TimeUnit unit)static Executor delayedExecutor(long delay, TimeUnit unit, Executor executor) |
exceptionally | exceptionally(fn) | CompletableFuture exceptionally(Function fn) |
exceptionallyAsync | exceptionallyAsync(fn)exceptionallyAsync([fn,executor])exceptionallyAsync([ :fn = v, :executor = v ]) | CompletableFuture exceptionallyAsync(Function fn)CompletableFuture exceptionallyAsync(Function fn, Executor executor) |
exceptionallyCompose | exceptionallyCompose(fn) | CompletableFuture exceptionallyCompose(Function fn) |
exceptionallyComposeAsync | exceptionallyComposeAsync(fn)exceptionallyComposeAsync([fn,executor])exceptionallyComposeAsync([ :fn = v, :executor = v ]) | CompletableFuture exceptionallyComposeAsync(Function fn)CompletableFuture exceptionallyComposeAsync(Function fn, Executor executor) |
exceptionNow | exceptionNow() | Throwable exceptionNow() |
failedFuture | failedFuture(ex) | static CompletableFuture failedFuture(Throwable ex) |
failedStage | failedStage(ex) | static CompletionStage failedStage(Throwable ex) |
getNow | getNow(valueIfAbsent) | Object getNow(Object valueIfAbsent) |
getNumberOfDependents | getNumberOfDependents() | int getNumberOfDependents() |
handle | handle(fn) | CompletableFuture handle(BiFunction fn) |
handleAsync | handleAsync(fn)handleAsync([fn,executor])handleAsync([ :fn = v, :executor = v ]) | CompletableFuture handleAsync(BiFunction fn)CompletableFuture handleAsync(BiFunction fn, Executor executor) |
isCancelled | isCancelled() | boolean isCancelled() |
isCompletedExceptionally | isCompletedExceptionally() | boolean isCompletedExceptionally() |
isDone | isDone() | boolean isDone() |
join | join() | Object join() |
minimalCompletionStage | minimalCompletionStage() | CompletionStage minimalCompletionStage() |
newIncompleteFuture | newIncompleteFuture() | CompletableFuture newIncompleteFuture() |
obtrudeException | obtrudeException(ex) | void obtrudeException(Throwable ex) |
obtrudeValue | obtrudeValue(value) | void obtrudeValue(Object value) |
orTimeout | orTimeout(timeout,unit) | CompletableFuture orTimeout(long timeout, TimeUnit unit) |
resultNow | resultNow() | Object resultNow() |
runAfterBoth | runAfterBoth(other,action) | CompletableFuture runAfterBoth(CompletionStage other, Runnable action) |
runAfterBothAsync | runAfterBothAsync([other,action])runAfterBothAsync([ :other = v, :action = v ])runAfterBothAsync([other,action,executor])runAfterBothAsync([ :other = v, :action = v, :executor = v ]) | CompletableFuture runAfterBothAsync(CompletionStage other, Runnable action)CompletableFuture runAfterBothAsync(CompletionStage other, Runnable action, Executor executor) |
runAfterEither | runAfterEither(other,action) | CompletableFuture runAfterEither(CompletionStage other, Runnable action) |
runAfterEitherAsync | runAfterEitherAsync([other,action])runAfterEitherAsync([ :other = v, :action = v ])runAfterEitherAsync([other,action,executor])runAfterEitherAsync([ :other = v, :action = v, :executor = v ]) | CompletableFuture runAfterEitherAsync(CompletionStage other, Runnable action)CompletableFuture runAfterEitherAsync(CompletionStage other, Runnable action, Executor executor) |
runAsync | runAsync(runnable)runAsync([runnable,executor])runAsync([ :runnable = v, :executor = v ]) | static CompletableFuture runAsync(Runnable runnable)static CompletableFuture runAsync(Runnable runnable, Executor executor) |
state | state() | State state() |
supplyAsync | supplyAsync(supplier)supplyAsync([supplier,executor])supplyAsync([ :supplier = v, :executor = v ]) | static CompletableFuture supplyAsync(Supplier supplier)static CompletableFuture supplyAsync(Supplier supplier, Executor executor) |
thenAccept | thenAccept(action) | CompletableFuture thenAccept(Consumer action) |
thenAcceptAsync | thenAcceptAsync(action)thenAcceptAsync([action,executor])thenAcceptAsync([ :action = v, :executor = v ]) | CompletableFuture thenAcceptAsync(Consumer action)CompletableFuture thenAcceptAsync(Consumer action, Executor executor) |
thenAcceptBoth | thenAcceptBoth(other,action) | CompletableFuture thenAcceptBoth(CompletionStage other, BiConsumer action) |
thenAcceptBothAsync | thenAcceptBothAsync([other,action])thenAcceptBothAsync([ :other = v, :action = v ])thenAcceptBothAsync([other,action,executor])thenAcceptBothAsync([ :other = v, :action = v, :executor = v ]) | CompletableFuture thenAcceptBothAsync(CompletionStage other, BiConsumer action)CompletableFuture thenAcceptBothAsync(CompletionStage other, BiConsumer action, Executor executor) |
thenApply | thenApply(fn) | CompletableFuture thenApply(Function fn) |
thenApplyAsync | thenApplyAsync(fn)thenApplyAsync([fn,executor])thenApplyAsync([ :fn = v, :executor = v ]) | CompletableFuture thenApplyAsync(Function fn)CompletableFuture thenApplyAsync(Function fn, Executor executor) |
thenCombine | thenCombine(other,fn) | CompletableFuture thenCombine(CompletionStage other, BiFunction fn) |
thenCombineAsync | thenCombineAsync([other,fn])thenCombineAsync([ :other = v, :fn = v ])thenCombineAsync([other,fn,executor])thenCombineAsync([ :other = v, :fn = v, :executor = v ]) | CompletableFuture thenCombineAsync(CompletionStage other, BiFunction fn)CompletableFuture thenCombineAsync(CompletionStage other, BiFunction fn, Executor executor) |
thenCompose | thenCompose(fn) | CompletableFuture thenCompose(Function fn) |
thenComposeAsync | thenComposeAsync(fn)thenComposeAsync([fn,executor])thenComposeAsync([ :fn = v, :executor = v ]) | CompletableFuture thenComposeAsync(Function fn)CompletableFuture thenComposeAsync(Function fn, Executor executor) |
thenRun | thenRun(action) | CompletableFuture thenRun(Runnable action) |
thenRunAsync | thenRunAsync(action)thenRunAsync([action,executor])thenRunAsync([ :action = v, :executor = v ]) | CompletableFuture thenRunAsync(Runnable action)CompletableFuture thenRunAsync(Runnable action, Executor executor) |
toCompletableFuture | toCompletableFuture() | CompletableFuture toCompletableFuture() |
whenComplete | whenComplete(action) | CompletableFuture whenComplete(BiConsumer action) |
whenCompleteAsync | whenCompleteAsync(action)whenCompleteAsync([action,executor])whenCompleteAsync([ :action = v, :executor = v ]) | CompletableFuture whenCompleteAsync(BiConsumer action)CompletableFuture whenCompleteAsync(BiConsumer action, Executor executor) |
The methods and fields of Object are inherited.
CompletableFutureAsynchronousCompletionTask#
interface · java.util.concurrent.CompletableFuture$AsynchronousCompletionTask
CompletionException#
class · extends RuntimeException · java.util.concurrent.CompletionException
Constructors
new CompletionException(Throwable cause) |
new CompletionException(String message, Throwable cause) |
Ring: new CompletionException(args) uses the constructor with the fewest parameters (at least one); new CompletionException makes the object with the constructor without parameters; the others: (new CompletionException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of RuntimeException are inherited.
CompletionService#
interface · java.util.concurrent.CompletionService
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Future poll(long timeout, TimeUnit unit) |
poll | poll() | Future poll() |
submit | submit(task)submit([task,result])submit([ :task = v, :result = v ]) | Future submit(Callable task)Future submit(Runnable task, Object result) |
take | take() | Future take() |
CompletionStage#
interface · java.util.concurrent.CompletionStage
Methods
| Method | Ring call | Java overloads |
|---|---|---|
acceptEither | acceptEither(other,action) | CompletionStage acceptEither(CompletionStage other, Consumer action) |
acceptEitherAsync | acceptEitherAsync([other,action])acceptEitherAsync([ :other = v, :action = v ])acceptEitherAsync([other,action,executor])acceptEitherAsync([ :other = v, :action = v, :executor = v ]) | CompletionStage acceptEitherAsync(CompletionStage other, Consumer action)CompletionStage acceptEitherAsync(CompletionStage other, Consumer action, Executor executor) |
applyToEither | applyToEither(other,fn) | CompletionStage applyToEither(CompletionStage other, Function fn) |
applyToEitherAsync | applyToEitherAsync([other,fn])applyToEitherAsync([ :other = v, :fn = v ])applyToEitherAsync([other,fn,executor])applyToEitherAsync([ :other = v, :fn = v, :executor = v ]) | CompletionStage applyToEitherAsync(CompletionStage other, Function fn)CompletionStage applyToEitherAsync(CompletionStage other, Function fn, Executor executor) |
exceptionally | exceptionally(fn) | CompletionStage exceptionally(Function fn) |
exceptionallyAsync | exceptionallyAsync(fn)exceptionallyAsync([fn,executor])exceptionallyAsync([ :fn = v, :executor = v ]) | CompletionStage exceptionallyAsync(Function fn)CompletionStage exceptionallyAsync(Function fn, Executor executor) |
exceptionallyCompose | exceptionallyCompose(fn) | CompletionStage exceptionallyCompose(Function fn) |
exceptionallyComposeAsync | exceptionallyComposeAsync(fn)exceptionallyComposeAsync([fn,executor])exceptionallyComposeAsync([ :fn = v, :executor = v ]) | CompletionStage exceptionallyComposeAsync(Function fn)CompletionStage exceptionallyComposeAsync(Function fn, Executor executor) |
handle | handle(fn) | CompletionStage handle(BiFunction fn) |
handleAsync | handleAsync(fn)handleAsync([fn,executor])handleAsync([ :fn = v, :executor = v ]) | CompletionStage handleAsync(BiFunction fn)CompletionStage handleAsync(BiFunction fn, Executor executor) |
runAfterBoth | runAfterBoth(other,action) | CompletionStage runAfterBoth(CompletionStage other, Runnable action) |
runAfterBothAsync | runAfterBothAsync([other,action])runAfterBothAsync([ :other = v, :action = v ])runAfterBothAsync([other,action,executor])runAfterBothAsync([ :other = v, :action = v, :executor = v ]) | CompletionStage runAfterBothAsync(CompletionStage other, Runnable action)CompletionStage runAfterBothAsync(CompletionStage other, Runnable action, Executor executor) |
runAfterEither | runAfterEither(other,action) | CompletionStage runAfterEither(CompletionStage other, Runnable action) |
runAfterEitherAsync | runAfterEitherAsync([other,action])runAfterEitherAsync([ :other = v, :action = v ])runAfterEitherAsync([other,action,executor])runAfterEitherAsync([ :other = v, :action = v, :executor = v ]) | CompletionStage runAfterEitherAsync(CompletionStage other, Runnable action)CompletionStage runAfterEitherAsync(CompletionStage other, Runnable action, Executor executor) |
thenAccept | thenAccept(action) | CompletionStage thenAccept(Consumer action) |
thenAcceptAsync | thenAcceptAsync(action)thenAcceptAsync([action,executor])thenAcceptAsync([ :action = v, :executor = v ]) | CompletionStage thenAcceptAsync(Consumer action)CompletionStage thenAcceptAsync(Consumer action, Executor executor) |
thenAcceptBoth | thenAcceptBoth(other,action) | CompletionStage thenAcceptBoth(CompletionStage other, BiConsumer action) |
thenAcceptBothAsync | thenAcceptBothAsync([other,action])thenAcceptBothAsync([ :other = v, :action = v ])thenAcceptBothAsync([other,action,executor])thenAcceptBothAsync([ :other = v, :action = v, :executor = v ]) | CompletionStage thenAcceptBothAsync(CompletionStage other, BiConsumer action)CompletionStage thenAcceptBothAsync(CompletionStage other, BiConsumer action, Executor executor) |
thenApply | thenApply(fn) | CompletionStage thenApply(Function fn) |
thenApplyAsync | thenApplyAsync(fn)thenApplyAsync([fn,executor])thenApplyAsync([ :fn = v, :executor = v ]) | CompletionStage thenApplyAsync(Function fn)CompletionStage thenApplyAsync(Function fn, Executor executor) |
thenCombine | thenCombine(other,fn) | CompletionStage thenCombine(CompletionStage other, BiFunction fn) |
thenCombineAsync | thenCombineAsync([other,fn])thenCombineAsync([ :other = v, :fn = v ])thenCombineAsync([other,fn,executor])thenCombineAsync([ :other = v, :fn = v, :executor = v ]) | CompletionStage thenCombineAsync(CompletionStage other, BiFunction fn)CompletionStage thenCombineAsync(CompletionStage other, BiFunction fn, Executor executor) |
thenCompose | thenCompose(fn) | CompletionStage thenCompose(Function fn) |
thenComposeAsync | thenComposeAsync(fn)thenComposeAsync([fn,executor])thenComposeAsync([ :fn = v, :executor = v ]) | CompletionStage thenComposeAsync(Function fn)CompletionStage thenComposeAsync(Function fn, Executor executor) |
thenRun | thenRun(action) | CompletionStage thenRun(Runnable action) |
thenRunAsync | thenRunAsync(action)thenRunAsync([action,executor])thenRunAsync([ :action = v, :executor = v ]) | CompletionStage thenRunAsync(Runnable action)CompletionStage thenRunAsync(Runnable action, Executor executor) |
toCompletableFuture | toCompletableFuture() | CompletableFuture toCompletableFuture() |
whenComplete | whenComplete(action) | CompletionStage whenComplete(BiConsumer action) |
whenCompleteAsync | whenCompleteAsync(action)whenCompleteAsync([action,executor])whenCompleteAsync([ :action = v, :executor = v ]) | CompletionStage whenCompleteAsync(BiConsumer action)CompletionStage whenCompleteAsync(BiConsumer action, Executor executor) |
ConcurrentHashMap#
class · extends AbstractMap · java.util.concurrent.ConcurrentHashMap
Implements: ConcurrentMap, Serializable
Constructors
new ConcurrentHashMap() |
new ConcurrentHashMap(int initialCapacity) |
new ConcurrentHashMap(Map m) |
new ConcurrentHashMap(int initialCapacity, float loadFactor) |
new ConcurrentHashMap(int initialCapacity, float loadFactor, int concurrencyLevel) |
Ring: new ConcurrentHashMap(args) uses the constructor with the fewest parameters (at least one); new ConcurrentHashMap makes the object with the constructor without parameters; the others: (new ConcurrentHashMap).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action)@forEach([parallelismThreshold,action])@forEach([ :parallelismThreshold = v, :action = v ])@forEach([parallelismThreshold,transformer,action])@forEach([ :parallelismThreshold = v, :transformer = v, :action = v ]) | void forEach(BiConsumer action)void forEach(long parallelismThreshold, BiConsumer action)void forEach(long parallelismThreshold, BiFunction transformer, Consumer action) |
@keySet | @keySet(mappedValue) | KeySetView keySet(Object mappedValue) |
@newKeySet | @newKeySet(initialCapacity) | static KeySetView newKeySet(int initialCapacity) |
contains | contains(value) | boolean contains(Object value) |
elements | elements() | Enumeration elements() |
forEachEntry | forEachEntry([parallelismThreshold,action])forEachEntry([ :parallelismThreshold = v, :action = v ])forEachEntry([parallelismThreshold,transformer,action])forEachEntry([ :parallelismThreshold = v, :transformer = v, :action = v ]) | void forEachEntry(long parallelismThreshold, Consumer action)void forEachEntry(long parallelismThreshold, Function transformer, Consumer action) |
forEachKey | forEachKey([parallelismThreshold,action])forEachKey([ :parallelismThreshold = v, :action = v ])forEachKey([parallelismThreshold,transformer,action])forEachKey([ :parallelismThreshold = v, :transformer = v, :action = v ]) | void forEachKey(long parallelismThreshold, Consumer action)void forEachKey(long parallelismThreshold, Function transformer, Consumer action) |
forEachValue | forEachValue([parallelismThreshold,action])forEachValue([ :parallelismThreshold = v, :action = v ])forEachValue([parallelismThreshold,transformer,action])forEachValue([ :parallelismThreshold = v, :transformer = v, :action = v ]) | void forEachValue(long parallelismThreshold, Consumer action)void forEachValue(long parallelismThreshold, Function transformer, Consumer action) |
keys | keys() | Enumeration keys() |
mappingCount | mappingCount() | long mappingCount() |
newKeySet | newKeySet() | static KeySetView newKeySet() |
reduce | reduce(parallelismThreshold,transformer,reducer) | Object reduce(long parallelismThreshold, BiFunction transformer, BiFunction reducer) |
reduceEntries | reduceEntries([parallelismThreshold,reducer])reduceEntries([ :parallelismThreshold = v, :reducer = v ])reduceEntries([parallelismThreshold,transformer,reducer])reduceEntries([ :parallelismThreshold = v, :transformer = v, :reducer = v ]) | Entry reduceEntries(long parallelismThreshold, BiFunction reducer)Object reduceEntries(long parallelismThreshold, Function transformer, BiFunction reducer) |
reduceEntriesToDouble | reduceEntriesToDouble(parallelismThreshold,transformer,basis,reducer) | double reduceEntriesToDouble(long parallelismThreshold, ToDoubleFunction transformer, double basis, DoubleBinaryOperator reducer) |
reduceEntriesToInt | reduceEntriesToInt(parallelismThreshold,transformer,basis,reducer) | int reduceEntriesToInt(long parallelismThreshold, ToIntFunction transformer, int basis, IntBinaryOperator reducer) |
reduceEntriesToLong | reduceEntriesToLong(parallelismThreshold,transformer,basis,reducer) | long reduceEntriesToLong(long parallelismThreshold, ToLongFunction transformer, long basis, LongBinaryOperator reducer) |
reduceKeys | reduceKeys([parallelismThreshold,reducer])reduceKeys([ :parallelismThreshold = v, :reducer = v ])reduceKeys([parallelismThreshold,transformer,reducer])reduceKeys([ :parallelismThreshold = v, :transformer = v, :reducer = v ]) | Object reduceKeys(long parallelismThreshold, BiFunction reducer)Object reduceKeys(long parallelismThreshold, Function transformer, BiFunction reducer) |
reduceKeysToDouble | reduceKeysToDouble(parallelismThreshold,transformer,basis,reducer) | double reduceKeysToDouble(long parallelismThreshold, ToDoubleFunction transformer, double basis, DoubleBinaryOperator reducer) |
reduceKeysToInt | reduceKeysToInt(parallelismThreshold,transformer,basis,reducer) | int reduceKeysToInt(long parallelismThreshold, ToIntFunction transformer, int basis, IntBinaryOperator reducer) |
reduceKeysToLong | reduceKeysToLong(parallelismThreshold,transformer,basis,reducer) | long reduceKeysToLong(long parallelismThreshold, ToLongFunction transformer, long basis, LongBinaryOperator reducer) |
reduceToDouble | reduceToDouble(parallelismThreshold,transformer,basis,reducer) | double reduceToDouble(long parallelismThreshold, ToDoubleBiFunction transformer, double basis, DoubleBinaryOperator reducer) |
reduceToInt | reduceToInt(parallelismThreshold,transformer,basis,reducer) | int reduceToInt(long parallelismThreshold, ToIntBiFunction transformer, int basis, IntBinaryOperator reducer) |
reduceToLong | reduceToLong(parallelismThreshold,transformer,basis,reducer) | long reduceToLong(long parallelismThreshold, ToLongBiFunction transformer, long basis, LongBinaryOperator reducer) |
reduceValues | reduceValues([parallelismThreshold,reducer])reduceValues([ :parallelismThreshold = v, :reducer = v ])reduceValues([parallelismThreshold,transformer,reducer])reduceValues([ :parallelismThreshold = v, :transformer = v, :reducer = v ]) | Object reduceValues(long parallelismThreshold, BiFunction reducer)Object reduceValues(long parallelismThreshold, Function transformer, BiFunction reducer) |
reduceValuesToDouble | reduceValuesToDouble(parallelismThreshold,transformer,basis,reducer) | double reduceValuesToDouble(long parallelismThreshold, ToDoubleFunction transformer, double basis, DoubleBinaryOperator reducer) |
reduceValuesToInt | reduceValuesToInt(parallelismThreshold,transformer,basis,reducer) | int reduceValuesToInt(long parallelismThreshold, ToIntFunction transformer, int basis, IntBinaryOperator reducer) |
reduceValuesToLong | reduceValuesToLong(parallelismThreshold,transformer,basis,reducer) | long reduceValuesToLong(long parallelismThreshold, ToLongFunction transformer, long basis, LongBinaryOperator reducer) |
search | search(parallelismThreshold,searchFunction) | Object search(long parallelismThreshold, BiFunction searchFunction) |
searchEntries | searchEntries(parallelismThreshold,searchFunction) | Object searchEntries(long parallelismThreshold, Function searchFunction) |
searchKeys | searchKeys(parallelismThreshold,searchFunction) | Object searchKeys(long parallelismThreshold, Function searchFunction) |
searchValues | searchValues(parallelismThreshold,searchFunction) | Object searchValues(long parallelismThreshold, Function searchFunction) |
The methods and fields of AbstractMap are inherited.
ConcurrentHashMapKeySetView#
class final · extends Object · java.util.concurrent.ConcurrentHashMap$KeySetView
Implements: Set, Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(Consumer action) |
@toArray | @toArray(a) | Object[] toArray(Object[] a)Object[] toArray(IntFunction generator) |
add | add(e) | boolean add(Object e) |
addAll | addAll(c) | boolean addAll(Collection c) |
clear | clear() | void clear() |
contains | contains(o) | boolean contains(Object o) |
containsAll | containsAll(c) | boolean containsAll(Collection c) |
getMappedValue | getMappedValue() | Object getMappedValue() |
isEmpty | isEmpty() | boolean isEmpty() |
iterator | iterator() | Iterator iterator() |
parallelStream | parallelStream() | Stream parallelStream() |
remove | remove(o) | boolean remove(Object o) |
removeIf | removeIf(filter) | boolean removeIf(Predicate filter) |
retainAll | retainAll(c) | boolean retainAll(Collection c) |
size | size() | int size() |
spliterator | spliterator() | Spliterator spliterator() |
stream | stream() | Stream stream() |
toArray | toArray() | Object[] toArray() |
The methods and fields of Object are inherited.
ConcurrentLinkedDeque#
class · extends AbstractCollection · java.util.concurrent.ConcurrentLinkedDeque
Implements: Deque, Serializable
Constructors
new ConcurrentLinkedDeque() |
new ConcurrentLinkedDeque(Collection c) |
Ring: new ConcurrentLinkedDeque(args) uses the constructor with the fewest parameters (at least one); new ConcurrentLinkedDeque makes the object with the constructor without parameters; the others: (new ConcurrentLinkedDeque).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@remove | @remove(o) | boolean remove(Object o) |
addFirst | addFirst(e) | void addFirst(Object e) |
addLast | addLast(e) | void addLast(Object e) |
descendingIterator | descendingIterator() | Iterator descendingIterator() |
element | element() | Object element() |
getFirst | getFirst() | Object getFirst() |
getLast | getLast() | Object getLast() |
offer | offer(e) | boolean offer(Object e) |
offerFirst | offerFirst(e) | boolean offerFirst(Object e) |
offerLast | offerLast(e) | boolean offerLast(Object e) |
peek | peek() | Object peek() |
peekFirst | peekFirst() | Object peekFirst() |
peekLast | peekLast() | Object peekLast() |
poll | poll() | Object poll() |
pollFirst | pollFirst() | Object pollFirst() |
pollLast | pollLast() | Object pollLast() |
pop | pop() | Object pop() |
push | push(e) | void push(Object e) |
remove | remove() | Object remove() |
removeFirst | removeFirst() | Object removeFirst() |
removeFirstOccurrence | removeFirstOccurrence(o) | boolean removeFirstOccurrence(Object o) |
removeLast | removeLast() | Object removeLast() |
removeLastOccurrence | removeLastOccurrence(o) | boolean removeLastOccurrence(Object o) |
reversed | reversed() | Deque reversed() |
The methods and fields of AbstractCollection are inherited.
ConcurrentLinkedQueue#
class · extends AbstractQueue · java.util.concurrent.ConcurrentLinkedQueue
Implements: Queue, Serializable
Constructors
new ConcurrentLinkedQueue() |
new ConcurrentLinkedQueue(Collection c) |
Ring: new ConcurrentLinkedQueue(args) uses the constructor with the fewest parameters (at least one); new ConcurrentLinkedQueue makes the object with the constructor without parameters; the others: (new ConcurrentLinkedQueue).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of AbstractQueue are inherited.
ConcurrentMap#
interface · java.util.concurrent.ConcurrentMap
Extends: Map
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(BiConsumer action) |
@get | @get(key) | Object get(Object key) |
@put | @put(key,value) | Object put(Object key, Object value) |
clear | clear() | void clear() |
compute | compute(key,remappingFunction) | Object compute(Object key, BiFunction remappingFunction) |
computeIfAbsent | computeIfAbsent(key,mappingFunction) | Object computeIfAbsent(Object key, Function mappingFunction) |
computeIfPresent | computeIfPresent(key,remappingFunction) | Object computeIfPresent(Object key, BiFunction remappingFunction) |
containsKey | containsKey(key) | boolean containsKey(Object key) |
containsValue | containsValue(value) | boolean containsValue(Object value) |
entrySet | entrySet() | Set entrySet() |
equals | equals(o) | boolean equals(Object o) |
getOrDefault | getOrDefault(key,defaultValue) | Object getOrDefault(Object key, Object defaultValue) |
hashCode | hashCode() | int hashCode() |
isEmpty | isEmpty() | boolean isEmpty() |
keySet | keySet() | Set keySet() |
merge | merge(key,value,remappingFunction) | Object merge(Object key, Object value, BiFunction remappingFunction) |
putAll | putAll(m) | void putAll(Map m) |
putIfAbsent | putIfAbsent(key,value) | Object putIfAbsent(Object key, Object value) |
remove | remove(key)remove([key,value])remove([ :key = v, :value = v ]) | Object remove(Object key)boolean remove(Object key, Object value) |
replace | replace([key,value])replace([ :key = v, :value = v ])replace([key,oldValue,newValue])replace([ :key = v, :oldValue = v, :newValue = v ]) | Object replace(Object key, Object value)boolean replace(Object key, Object oldValue, Object newValue) |
replaceAll | replaceAll(function) | void replaceAll(BiFunction function) |
size | size() | int size() |
values | values() | Collection values() |
ConcurrentNavigableMap#
interface · java.util.concurrent.ConcurrentNavigableMap
Extends: ConcurrentMap, NavigableMap
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(BiConsumer action) |
@get | @get(key) | Object get(Object key) |
@put | @put(key,value) | Object put(Object key, Object value) |
ceilingEntry | ceilingEntry(key) | Entry ceilingEntry(Object key) |
ceilingKey | ceilingKey(key) | Object ceilingKey(Object key) |
clear | clear() | void clear() |
comparator | comparator() | Comparator comparator() |
compute | compute(key,remappingFunction) | Object compute(Object key, BiFunction remappingFunction) |
computeIfAbsent | computeIfAbsent(key,mappingFunction) | Object computeIfAbsent(Object key, Function mappingFunction) |
computeIfPresent | computeIfPresent(key,remappingFunction) | Object computeIfPresent(Object key, BiFunction remappingFunction) |
containsKey | containsKey(key) | boolean containsKey(Object key) |
containsValue | containsValue(value) | boolean containsValue(Object value) |
descendingKeySet | descendingKeySet() | NavigableSet descendingKeySet() |
descendingMap | descendingMap() | ConcurrentNavigableMap descendingMap() |
entrySet | entrySet() | Set entrySet() |
equals | equals(o) | boolean equals(Object o) |
firstEntry | firstEntry() | Entry firstEntry() |
firstKey | firstKey() | Object firstKey() |
floorEntry | floorEntry(key) | Entry floorEntry(Object key) |
floorKey | floorKey(key) | Object floorKey(Object key) |
getOrDefault | getOrDefault(key,defaultValue) | Object getOrDefault(Object key, Object defaultValue) |
hashCode | hashCode() | int hashCode() |
headMap | headMap(toKey)headMap([toKey,inclusive])headMap([ :toKey = v, :inclusive = v ]) | ConcurrentNavigableMap headMap(Object toKey)ConcurrentNavigableMap headMap(Object toKey, boolean inclusive) |
higherEntry | higherEntry(key) | Entry higherEntry(Object key) |
higherKey | higherKey(key) | Object higherKey(Object key) |
isEmpty | isEmpty() | boolean isEmpty() |
keySet | keySet() | NavigableSet keySet() |
lastEntry | lastEntry() | Entry lastEntry() |
lastKey | lastKey() | Object lastKey() |
lowerEntry | lowerEntry(key) | Entry lowerEntry(Object key) |
lowerKey | lowerKey(key) | Object lowerKey(Object key) |
merge | merge(key,value,remappingFunction) | Object merge(Object key, Object value, BiFunction remappingFunction) |
navigableKeySet | navigableKeySet() | NavigableSet navigableKeySet() |
pollFirstEntry | pollFirstEntry() | Entry pollFirstEntry() |
pollLastEntry | pollLastEntry() | Entry pollLastEntry() |
putAll | putAll(m) | void putAll(Map m) |
putFirst | putFirst(k,v) | Object putFirst(Object k, Object v) |
putIfAbsent | putIfAbsent(key,value) | Object putIfAbsent(Object key, Object value) |
putLast | putLast(k,v) | Object putLast(Object k, Object v) |
remove | remove(key)remove([key,value])remove([ :key = v, :value = v ]) | Object remove(Object key)boolean remove(Object key, Object value) |
replace | replace([key,value])replace([ :key = v, :value = v ])replace([key,oldValue,newValue])replace([ :key = v, :oldValue = v, :newValue = v ]) | Object replace(Object key, Object value)boolean replace(Object key, Object oldValue, Object newValue) |
replaceAll | replaceAll(function) | void replaceAll(BiFunction function) |
reversed | reversed() | NavigableMap reversed() |
sequencedEntrySet | sequencedEntrySet() | SequencedSet sequencedEntrySet() |
sequencedKeySet | sequencedKeySet() | SequencedSet sequencedKeySet() |
sequencedValues | sequencedValues() | SequencedCollection sequencedValues() |
size | size() | int size() |
subMap | subMap([fromKey,toKey])subMap([ :fromKey = v, :toKey = v ])subMap([fromKey,fromInclusive,toKey,toInclusive])subMap([ :fromKey = v, :fromInclusive = v, :toKey = v, :toInclusive = v ]) | ConcurrentNavigableMap subMap(Object fromKey, Object toKey)ConcurrentNavigableMap subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive) |
tailMap | tailMap(fromKey)tailMap([fromKey,inclusive])tailMap([ :fromKey = v, :inclusive = v ]) | ConcurrentNavigableMap tailMap(Object fromKey)ConcurrentNavigableMap tailMap(Object fromKey, boolean inclusive) |
values | values() | Collection values() |
ConcurrentSkipListMap#
class · extends AbstractMap · java.util.concurrent.ConcurrentSkipListMap
Implements: ConcurrentNavigableMap, Cloneable, Serializable
Constructors
new ConcurrentSkipListMap() |
new ConcurrentSkipListMap(Map m) |
new ConcurrentSkipListMap(Comparator comparator) |
new ConcurrentSkipListMap(SortedMap m) |
Ring: new ConcurrentSkipListMap(args) uses the constructor with the fewest parameters (at least one); new ConcurrentSkipListMap makes the object with the constructor without parameters; the others: (new ConcurrentSkipListMap).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
ceilingEntry | ceilingEntry(key) | Entry ceilingEntry(Object key) |
ceilingKey | ceilingKey(key) | Object ceilingKey(Object key) |
clone | clone() | ConcurrentSkipListMap clone() |
comparator | comparator() | Comparator comparator() |
descendingKeySet | descendingKeySet() | NavigableSet descendingKeySet() |
descendingMap | descendingMap() | ConcurrentNavigableMap descendingMap() |
firstEntry | firstEntry() | Entry firstEntry() |
firstKey | firstKey() | Object firstKey() |
floorEntry | floorEntry(key) | Entry floorEntry(Object key) |
floorKey | floorKey(key) | Object floorKey(Object key) |
headMap | headMap(toKey)headMap([toKey,inclusive])headMap([ :toKey = v, :inclusive = v ]) | ConcurrentNavigableMap headMap(Object toKey)ConcurrentNavigableMap headMap(Object toKey, boolean inclusive) |
higherEntry | higherEntry(key) | Entry higherEntry(Object key) |
higherKey | higherKey(key) | Object higherKey(Object key) |
lastEntry | lastEntry() | Entry lastEntry() |
lastKey | lastKey() | Object lastKey() |
lowerEntry | lowerEntry(key) | Entry lowerEntry(Object key) |
lowerKey | lowerKey(key) | Object lowerKey(Object key) |
navigableKeySet | navigableKeySet() | NavigableSet navigableKeySet() |
pollFirstEntry | pollFirstEntry() | Entry pollFirstEntry() |
pollLastEntry | pollLastEntry() | Entry pollLastEntry() |
putFirst | putFirst(k,v) | Object putFirst(Object k, Object v) |
putLast | putLast(k,v) | Object putLast(Object k, Object v) |
reversed | reversed() | NavigableMap reversed() |
sequencedEntrySet | sequencedEntrySet() | SequencedSet sequencedEntrySet() |
sequencedKeySet | sequencedKeySet() | SequencedSet sequencedKeySet() |
sequencedValues | sequencedValues() | SequencedCollection sequencedValues() |
subMap | subMap([fromKey,toKey])subMap([ :fromKey = v, :toKey = v ])subMap([fromKey,fromInclusive,toKey,toInclusive])subMap([ :fromKey = v, :fromInclusive = v, :toKey = v, :toInclusive = v ]) | ConcurrentNavigableMap subMap(Object fromKey, Object toKey)ConcurrentNavigableMap subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive) |
tailMap | tailMap(fromKey)tailMap([fromKey,inclusive])tailMap([ :fromKey = v, :inclusive = v ]) | ConcurrentNavigableMap tailMap(Object fromKey)ConcurrentNavigableMap tailMap(Object fromKey, boolean inclusive) |
The methods and fields of AbstractMap are inherited.
ConcurrentSkipListSet#
class · extends AbstractSet · java.util.concurrent.ConcurrentSkipListSet
Implements: NavigableSet, Cloneable, Serializable
Constructors
new ConcurrentSkipListSet() |
new ConcurrentSkipListSet(SortedSet s) |
new ConcurrentSkipListSet(Collection c) |
new ConcurrentSkipListSet(Comparator comparator) |
Ring: new ConcurrentSkipListSet(args) uses the constructor with the fewest parameters (at least one); new ConcurrentSkipListSet makes the object with the constructor without parameters; the others: (new ConcurrentSkipListSet).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addFirst | addFirst(e) | void addFirst(Object e) |
addLast | addLast(e) | void addLast(Object e) |
ceiling | ceiling(e) | Object ceiling(Object e) |
clone | clone() | ConcurrentSkipListSet clone() |
comparator | comparator() | Comparator comparator() |
descendingIterator | descendingIterator() | Iterator descendingIterator() |
descendingSet | descendingSet() | NavigableSet descendingSet() |
first | first() | Object first() |
floor | floor(e) | Object floor(Object e) |
getFirst | getFirst() | Object getFirst() |
getLast | getLast() | Object getLast() |
headSet | headSet(toElement)headSet([toElement,inclusive])headSet([ :toElement = v, :inclusive = v ]) | NavigableSet headSet(Object toElement)NavigableSet headSet(Object toElement, boolean inclusive) |
higher | higher(e) | Object higher(Object e) |
last | last() | Object last() |
lower | lower(e) | Object lower(Object e) |
pollFirst | pollFirst() | Object pollFirst() |
pollLast | pollLast() | Object pollLast() |
removeFirst | removeFirst() | Object removeFirst() |
removeLast | removeLast() | Object removeLast() |
reversed | reversed() | NavigableSet reversed() |
subSet | subSet([fromElement,toElement])subSet([ :fromElement = v, :toElement = v ])subSet([fromElement,fromInclusive,toElement,toInclusive])subSet([ :fromElement = v, :fromInclusive = v, :toElement = v, :toInclusive = v ]) | NavigableSet subSet(Object fromElement, Object toElement)NavigableSet subSet(Object fromElement, boolean fromInclusive, Object toElement, boolean toInclusive) |
tailSet | tailSet(fromElement)tailSet([fromElement,inclusive])tailSet([ :fromElement = v, :inclusive = v ]) | NavigableSet tailSet(Object fromElement)NavigableSet tailSet(Object fromElement, boolean inclusive) |
The methods and fields of AbstractSet are inherited.
CopyOnWriteArrayList#
class · extends Object · java.util.concurrent.CopyOnWriteArrayList
Implements: List, RandomAccess, Cloneable, Serializable
Constructors
new CopyOnWriteArrayList() |
new CopyOnWriteArrayList(Object[] c) |
new CopyOnWriteArrayList(Collection c) |
Ring: new CopyOnWriteArrayList(args) uses the constructor with the fewest parameters (at least one); new CopyOnWriteArrayList makes the object with the constructor without parameters; the others: (new CopyOnWriteArrayList).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(Consumer action) |
@get | @get(index) | Object get(int index) |
@listIterator | @listIterator(index) | ListIterator listIterator(int index) |
@toArray | @toArray(a) | Object[] toArray(Object[] a)Object[] toArray(IntFunction generator) |
add | add(e)add([index,element])add([ :index = v, :element = v ]) | boolean add(Object e)void add(int index, Object element) |
addAll | addAll(c)addAll([index,c])addAll([ :index = v, :c = v ]) | boolean addAll(Collection c)boolean addAll(int index, Collection c) |
addAllAbsent | addAllAbsent(c) | int addAllAbsent(Collection c) |
addFirst | addFirst(e) | void addFirst(Object e) |
addIfAbsent | addIfAbsent(e) | boolean addIfAbsent(Object e) |
addLast | addLast(e) | void addLast(Object e) |
clear | clear() | void clear() |
clone | clone() | Object clone() |
contains | contains(o) | boolean contains(Object o) |
containsAll | containsAll(c) | boolean containsAll(Collection c) |
getFirst | getFirst() | Object getFirst() |
getLast | getLast() | Object getLast() |
indexOf | indexOf(o)indexOf([e,index])indexOf([ :e = v, :index = v ]) | int indexOf(Object o)int indexOf(Object e, int index) |
isEmpty | isEmpty() | boolean isEmpty() |
iterator | iterator() | Iterator iterator() |
lastIndexOf | lastIndexOf(o)lastIndexOf([e,index])lastIndexOf([ :e = v, :index = v ]) | int lastIndexOf(Object o)int lastIndexOf(Object e, int index) |
listIterator | listIterator() | ListIterator listIterator() |
parallelStream | parallelStream() | Stream parallelStream() |
remove | remove(index) | Object remove(int index)boolean remove(Object o) |
removeAll | removeAll(c) | boolean removeAll(Collection c) |
removeFirst | removeFirst() | Object removeFirst() |
removeIf | removeIf(filter) | boolean removeIf(Predicate filter) |
removeLast | removeLast() | Object removeLast() |
replaceAll | replaceAll(operator) | void replaceAll(UnaryOperator operator) |
retainAll | retainAll(c) | boolean retainAll(Collection c) |
reversed | reversed() | List reversed() |
set | set(index,element) | Object set(int index, Object element) |
size | size() | int size() |
sort | sort(c) | void sort(Comparator c) |
spliterator | spliterator() | Spliterator spliterator() |
stream | stream() | Stream stream() |
subList | subList(fromIndex,toIndex) | List subList(int fromIndex, int toIndex) |
toArray | toArray() | Object[] toArray() |
The methods and fields of Object are inherited.
CopyOnWriteArraySet#
class · extends AbstractSet · java.util.concurrent.CopyOnWriteArraySet
Implements: Serializable
Constructors
new CopyOnWriteArraySet() |
new CopyOnWriteArraySet(Collection c) |
Ring: new CopyOnWriteArraySet(args) uses the constructor with the fewest parameters (at least one); new CopyOnWriteArraySet makes the object with the constructor without parameters; the others: (new CopyOnWriteArraySet).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of AbstractSet are inherited.
CountDownLatch#
class · extends Object · java.util.concurrent.CountDownLatch
Constructors
new CountDownLatch(int count) |
Ring: new CountDownLatch(args) uses the constructor with the fewest parameters (at least one); new CountDownLatch makes the object with the constructor without parameters; the others: (new CountDownLatch).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@await | @await([timeout,unit])@await([ :timeout = v, :unit = v ]) | boolean await(long timeout, TimeUnit unit) |
await | await() | void await() |
countDown | countDown() | void countDown() |
getCount | getCount() | long getCount() |
The methods and fields of Object are inherited.
CountedCompleter#
abstract · extends ForkJoinTask · java.util.concurrent.CountedCompleter
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addToPendingCount | addToPendingCount(delta) | void addToPendingCount(int delta) |
compareAndSetPendingCount | compareAndSetPendingCount(expected,count) | boolean compareAndSetPendingCount(int expected, int count) |
compute | compute() | void compute() |
decrementPendingCountUnlessZero | decrementPendingCountUnlessZero() | int decrementPendingCountUnlessZero() |
firstComplete | firstComplete() | CountedCompleter firstComplete() |
getCompleter | getCompleter() | CountedCompleter getCompleter() |
getPendingCount | getPendingCount() | int getPendingCount() |
getRoot | getRoot() | CountedCompleter getRoot() |
helpComplete | helpComplete(maxTasks) | void helpComplete(int maxTasks) |
nextComplete | nextComplete() | CountedCompleter nextComplete() |
onCompletion | onCompletion(caller) | void onCompletion(CountedCompleter caller) |
onExceptionalCompletion | onExceptionalCompletion(ex,caller) | boolean onExceptionalCompletion(Throwable ex, CountedCompleter caller) |
propagateCompletion | propagateCompletion() | void propagateCompletion() |
quietlyCompleteRoot | quietlyCompleteRoot() | void quietlyCompleteRoot() |
setPendingCount | setPendingCount(count) | void setPendingCount(int count) |
tryComplete | tryComplete() | void tryComplete() |
The methods and fields of ForkJoinTask are inherited.
CyclicBarrier#
class · extends Object · java.util.concurrent.CyclicBarrier
Constructors
new CyclicBarrier(int parties) |
new CyclicBarrier(int parties, Runnable barrierAction) |
Ring: new CyclicBarrier(args) uses the constructor with the fewest parameters (at least one); new CyclicBarrier makes the object with the constructor without parameters; the others: (new CyclicBarrier).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@await | @await([timeout,unit])@await([ :timeout = v, :unit = v ]) | int await(long timeout, TimeUnit unit) |
await | await() | int await() |
getNumberWaiting | getNumberWaiting() | int getNumberWaiting() |
getParties | getParties() | int getParties() |
isBroken | isBroken() | boolean isBroken() |
reset | reset() | void reset() |
The methods and fields of Object are inherited.
Delayed#
interface · java.util.concurrent.Delayed
Extends: Comparable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
compareTo | compareTo(o) | int compareTo(Object o) |
getDelay | getDelay(unit) | long getDelay(TimeUnit unit) |
DelayQueue#
class · extends AbstractQueue · java.util.concurrent.DelayQueue
Implements: BlockingQueue
Constructors
new DelayQueue() |
new DelayQueue(Collection c) |
Ring: new DelayQueue(args) uses the constructor with the fewest parameters (at least one); new DelayQueue makes the object with the constructor without parameters; the others: (new DelayQueue).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Delayed poll(long timeout, TimeUnit unit) |
@put | @put(e) | void put(Delayed e) |
drainTo | drainTo(c)drainTo([c,maxElements])drainTo([ :c = v, :maxElements = v ]) | int drainTo(Collection c)int drainTo(Collection c, int maxElements) |
offer | offer(e)offer([e,timeout,unit])offer([ :e = v, :timeout = v, :unit = v ]) | boolean offer(Delayed e)boolean offer(Delayed e, long timeout, TimeUnit unit) |
remainingCapacity | remainingCapacity() | int remainingCapacity() |
take | take() | Delayed take() |
The methods and fields of AbstractQueue are inherited.
Exchanger#
class · extends Object · java.util.concurrent.Exchanger
Constructors
new Exchanger() |
Ring: new Exchanger(args) uses the constructor with the fewest parameters (at least one); new Exchanger makes the object with the constructor without parameters; the others: (new Exchanger).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
exchange | exchange(x)exchange([x,timeout,unit])exchange([ :x = v, :timeout = v, :unit = v ]) | Object exchange(Object x)Object exchange(Object x, long timeout, TimeUnit unit) |
The methods and fields of Object are inherited.
ExecutionException#
class · extends Exception · java.util.concurrent.ExecutionException
Constructors
new ExecutionException(Throwable cause) |
new ExecutionException(String message, Throwable cause) |
Ring: new ExecutionException(args) uses the constructor with the fewest parameters (at least one); new ExecutionException makes the object with the constructor without parameters; the others: (new ExecutionException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Exception are inherited.
Executor#
interface · java.util.concurrent.Executor
Methods
| Method | Ring call | Java overloads |
|---|---|---|
execute | execute(command) | void execute(Runnable command) |
ExecutorCompletionService#
class · extends Object · java.util.concurrent.ExecutorCompletionService
Implements: CompletionService
Constructors
new ExecutorCompletionService(Executor executor) |
new ExecutorCompletionService(Executor executor, BlockingQueue completionQueue) |
Ring: new ExecutorCompletionService(args) uses the constructor with the fewest parameters (at least one); new ExecutorCompletionService makes the object with the constructor without parameters; the others: (new ExecutorCompletionService).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Future poll(long timeout, TimeUnit unit) |
poll | poll() | Future poll() |
submit | submit(task)submit([task,result])submit([ :task = v, :result = v ]) | Future submit(Callable task)Future submit(Runnable task, Object result) |
take | take() | Future take() |
The methods and fields of Object are inherited.
Executors#
class final · extends Object · java.util.concurrent.Executors
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@newCachedThreadPool | @newCachedThreadPool(threadFactory) | static ExecutorService newCachedThreadPool(ThreadFactory threadFactory) |
@newSingleThreadExecutor | @newSingleThreadExecutor(threadFactory) | static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory) |
@newSingleThreadScheduledExecutor | @newSingleThreadScheduledExecutor(threadFactory) | static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactory) |
@newWorkStealingPool | @newWorkStealingPool(parallelism) | static ExecutorService newWorkStealingPool(int parallelism) |
callable | callable(task)callable([task,result])callable([ :task = v, :result = v ]) | static Callable callable(Runnable task)static Callable callable(PrivilegedAction action)static Callable callable(PrivilegedExceptionAction action)static Callable callable(Runnable task, Object result) |
defaultThreadFactory | defaultThreadFactory() | static ThreadFactory defaultThreadFactory() |
newCachedThreadPool | newCachedThreadPool() | static ExecutorService newCachedThreadPool() |
newFixedThreadPool | newFixedThreadPool(nThreads)newFixedThreadPool([nThreads,threadFactory])newFixedThreadPool([ :nThreads = v, :threadFactory = v ]) | static ExecutorService newFixedThreadPool(int nThreads)static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) |
newScheduledThreadPool | newScheduledThreadPool(corePoolSize)newScheduledThreadPool([corePoolSize,threadFactory])newScheduledThreadPool([ :corePoolSize = v, :threadFactory = v ]) | static ScheduledExecutorService newScheduledThreadPool(int corePoolSize)static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory) |
newSingleThreadExecutor | newSingleThreadExecutor() | static ExecutorService newSingleThreadExecutor() |
newSingleThreadScheduledExecutor | newSingleThreadScheduledExecutor() | static ScheduledExecutorService newSingleThreadScheduledExecutor() |
newThreadPerTaskExecutor | newThreadPerTaskExecutor(threadFactory) | static ExecutorService newThreadPerTaskExecutor(ThreadFactory threadFactory) |
newVirtualThreadPerTaskExecutor | newVirtualThreadPerTaskExecutor() | static ExecutorService newVirtualThreadPerTaskExecutor() |
newWorkStealingPool | newWorkStealingPool() | static ExecutorService newWorkStealingPool() |
privilegedCallable | privilegedCallable(callable) | static Callable privilegedCallable(Callable callable) |
privilegedCallableUsingCurrentClassLoader | privilegedCallableUsingCurrentClassLoader(callable) | static Callable privilegedCallableUsingCurrentClassLoader(Callable callable) |
privilegedThreadFactory | privilegedThreadFactory() | static ThreadFactory privilegedThreadFactory() |
unconfigurableExecutorService | unconfigurableExecutorService(executor) | static ExecutorService unconfigurableExecutorService(ExecutorService executor) |
unconfigurableScheduledExecutorService | unconfigurableScheduledExecutorService(executor) | static ScheduledExecutorService unconfigurableScheduledExecutorService(ScheduledExecutorService executor) |
The methods and fields of Object are inherited.
ExecutorService#
interface · java.util.concurrent.ExecutorService
Extends: Executor, AutoCloseable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
awaitTermination | awaitTermination(timeout,unit) | boolean awaitTermination(long timeout, TimeUnit unit) |
close | close() | void close() |
execute | execute(command) | void execute(Runnable command) |
invokeAll | invokeAll(tasks)invokeAll([tasks,timeout,unit])invokeAll([ :tasks = v, :timeout = v, :unit = v ]) | List invokeAll(Collection tasks)List invokeAll(Collection tasks, long timeout, TimeUnit unit) |
invokeAny | invokeAny(tasks)invokeAny([tasks,timeout,unit])invokeAny([ :tasks = v, :timeout = v, :unit = v ]) | Object invokeAny(Collection tasks)Object invokeAny(Collection tasks, long timeout, TimeUnit unit) |
isShutdown | isShutdown() | boolean isShutdown() |
isTerminated | isTerminated() | boolean isTerminated() |
shutdown | shutdown() | void shutdown() |
shutdownNow | shutdownNow() | List shutdownNow() |
submit | submit(task)submit([task,result])submit([ :task = v, :result = v ]) | Future submit(Runnable task)Future submit(Callable task)Future submit(Runnable task, Object result) |
Flow#
class final · extends Object · java.util.concurrent.Flow
Methods
| Method | Ring call | Java overloads |
|---|---|---|
defaultBufferSize | defaultBufferSize() | static int defaultBufferSize() |
The methods and fields of Object are inherited.
FlowProcessor#
interface · java.util.concurrent.Flow$Processor
Extends: FlowSubscriber, FlowPublisher
Methods
| Method | Ring call | Java overloads |
|---|---|---|
onComplete | onComplete() | void onComplete() |
onError | onError(throwable) | void onError(Throwable throwable) |
onNext | onNext(item) | void onNext(Object item) |
onSubscribe | onSubscribe(subscription) | void onSubscribe(Subscription subscription) |
subscribe | subscribe(subscriber) | void subscribe(Subscriber subscriber) |
FlowPublisher#
interface · java.util.concurrent.Flow$Publisher
Methods
| Method | Ring call | Java overloads |
|---|---|---|
subscribe | subscribe(subscriber) | void subscribe(Subscriber subscriber) |
FlowSubscriber#
interface · java.util.concurrent.Flow$Subscriber
Methods
| Method | Ring call | Java overloads |
|---|---|---|
onComplete | onComplete() | void onComplete() |
onError | onError(throwable) | void onError(Throwable throwable) |
onNext | onNext(item) | void onNext(Object item) |
onSubscribe | onSubscribe(subscription) | void onSubscribe(Subscription subscription) |
FlowSubscription#
interface · java.util.concurrent.Flow$Subscription
Methods
| Method | Ring call | Java overloads |
|---|---|---|
cancel | cancel() | void cancel() |
request | request(n) | void request(long n) |
ForkJoinPool#
class · extends AbstractExecutorService · java.util.concurrent.ForkJoinPool
Implements: ScheduledExecutorService
Constructors
new ForkJoinPool() |
new ForkJoinPool(int parallelism) |
new ForkJoinPool(int parallelism, ForkJoinWorkerThreadFactory factory, UncaughtExceptionHandler handler, boolean asyncMode) |
new ForkJoinPool(int parallelism, ForkJoinWorkerThreadFactory factory, UncaughtExceptionHandler handler, boolean asyncMode, int corePoolSize, int maximumPoolSize, int minimumRunnable, Predicate saturate, long keepAliveTime, TimeUnit unit) |
Ring: new ForkJoinPool(args) uses the constructor with the fewest parameters (at least one); new ForkJoinPool makes the object with the constructor without parameters; the others: (new ForkJoinPool).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
defaultForkJoinWorkerThreadFactory | ForkJoinWorkerThreadFactory | constant · static | o.defaultForkJoinWorkerThreadFactory |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
awaitQuiescence | awaitQuiescence(timeout,unit) | boolean awaitQuiescence(long timeout, TimeUnit unit) |
cancelDelayedTasksOnShutdown | cancelDelayedTasksOnShutdown() | void cancelDelayedTasksOnShutdown() |
commonPool | commonPool() | static ForkJoinPool commonPool() |
externalSubmit | externalSubmit(task) | ForkJoinTask externalSubmit(ForkJoinTask task) |
getActiveThreadCount | getActiveThreadCount() | int getActiveThreadCount() |
getAsyncMode | getAsyncMode() | boolean getAsyncMode() |
getCommonPoolParallelism | getCommonPoolParallelism() | static int getCommonPoolParallelism() |
getDelayedTaskCount | getDelayedTaskCount() | long getDelayedTaskCount() |
getFactory | getFactory() | ForkJoinWorkerThreadFactory getFactory() |
getParallelism | getParallelism() | int getParallelism() |
getPoolSize | getPoolSize() | int getPoolSize() |
getQueuedSubmissionCount | getQueuedSubmissionCount() | int getQueuedSubmissionCount() |
getQueuedTaskCount | getQueuedTaskCount() | long getQueuedTaskCount() |
getRunningThreadCount | getRunningThreadCount() | int getRunningThreadCount() |
getStealCount | getStealCount() | long getStealCount() |
getUncaughtExceptionHandler | getUncaughtExceptionHandler() | UncaughtExceptionHandler getUncaughtExceptionHandler() |
hasQueuedSubmissions | hasQueuedSubmissions() | boolean hasQueuedSubmissions() |
invoke | invoke(task) | Object invoke(ForkJoinTask task) |
invokeAllUninterruptibly | invokeAllUninterruptibly(tasks) | List invokeAllUninterruptibly(Collection tasks) |
isQuiescent | isQuiescent() | boolean isQuiescent() |
isTerminating | isTerminating() | boolean isTerminating() |
lazySubmit | lazySubmit(task) | ForkJoinTask lazySubmit(ForkJoinTask task) |
managedBlock | managedBlock(blocker) | static void managedBlock(ManagedBlocker blocker) |
schedule | schedule(callable,delay,unit) | ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit)ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit) |
scheduleAtFixedRate | scheduleAtFixedRate(command,initialDelay,period,unit) | ScheduledFuture scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) |
scheduleWithFixedDelay | scheduleWithFixedDelay(command,initialDelay,delay,unit) | ScheduledFuture scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) |
setParallelism | setParallelism(size) | int setParallelism(int size) |
submitWithTimeout | submitWithTimeout(callable,timeout,unit,timeoutAction) | ForkJoinTask submitWithTimeout(Callable callable, long timeout, TimeUnit unit, Consumer timeoutAction) |
The methods and fields of AbstractExecutorService are inherited.
ForkJoinPoolForkJoinWorkerThreadFactory#
interface · java.util.concurrent.ForkJoinPool$ForkJoinWorkerThreadFactory
Methods
| Method | Ring call | Java overloads |
|---|---|---|
newThread | newThread(pool) | ForkJoinWorkerThread newThread(ForkJoinPool pool) |
ForkJoinPoolManagedBlocker#
interface · java.util.concurrent.ForkJoinPool$ManagedBlocker
Methods
| Method | Ring call | Java overloads |
|---|---|---|
block | block() | boolean block() |
isReleasable | isReleasable() | boolean isReleasable() |
ForkJoinTask#
abstract · extends Object · java.util.concurrent.ForkJoinTask
Implements: Future, Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@@get | @@get([timeout,unit])@@get([ :timeout = v, :unit = v ]) | Object get(long timeout, TimeUnit unit) |
@get | @get() | Object get() |
@quietlyJoin | @quietlyJoin([timeout,unit])@quietlyJoin([ :timeout = v, :unit = v ]) | boolean quietlyJoin(long timeout, TimeUnit unit) |
adapt | adapt(callable)adapt([runnable,result])adapt([ :runnable = v, :result = v ]) | static ForkJoinTask adapt(Callable callable)static ForkJoinTask adapt(Runnable runnable)static ForkJoinTask adapt(Runnable runnable, Object result) |
adaptInterruptible | adaptInterruptible(runnable)adaptInterruptible([runnable,result])adaptInterruptible([ :runnable = v, :result = v ]) | static ForkJoinTask adaptInterruptible(Runnable runnable)static ForkJoinTask adaptInterruptible(Callable callable)static ForkJoinTask adaptInterruptible(Runnable runnable, Object result) |
cancel | cancel(mayInterruptIfRunning) | boolean cancel(boolean mayInterruptIfRunning) |
compareAndSetForkJoinTaskTag | compareAndSetForkJoinTaskTag(expect,update) | boolean compareAndSetForkJoinTaskTag(short expect, short update) |
complete | complete(value) | void complete(Object value) |
completeExceptionally | completeExceptionally(ex) | void completeExceptionally(Throwable ex) |
exceptionNow | exceptionNow() | Throwable exceptionNow() |
fork | fork() | ForkJoinTask fork() |
getException | getException() | Throwable getException() |
getForkJoinTaskTag | getForkJoinTaskTag() | short getForkJoinTaskTag() |
getPool | getPool() | static ForkJoinPool getPool() |
getQueuedTaskCount | getQueuedTaskCount() | static int getQueuedTaskCount() |
getRawResult | getRawResult() | Object getRawResult() |
getSurplusQueuedTaskCount | getSurplusQueuedTaskCount() | static int getSurplusQueuedTaskCount() |
helpQuiesce | helpQuiesce() | static void helpQuiesce() |
inForkJoinPool | inForkJoinPool() | static boolean inForkJoinPool() |
invoke | invoke() | Object invoke() |
invokeAll | invokeAll(tasks)invokeAll([t1,t2])invokeAll([ :t1 = v, :t2 = v ]) | static Collection invokeAll(Collection tasks)static void invokeAll(ForkJoinTask[] tasks)static void invokeAll(ForkJoinTask t1, ForkJoinTask t2) |
isCancelled | isCancelled() | boolean isCancelled() |
isCompletedAbnormally | isCompletedAbnormally() | boolean isCompletedAbnormally() |
isCompletedNormally | isCompletedNormally() | boolean isCompletedNormally() |
isDone | isDone() | boolean isDone() |
join | join() | Object join() |
quietlyComplete | quietlyComplete() | void quietlyComplete() |
quietlyInvoke | quietlyInvoke() | void quietlyInvoke() |
quietlyJoin | quietlyJoin() | void quietlyJoin() |
quietlyJoinUninterruptibly | quietlyJoinUninterruptibly(timeout,unit) | boolean quietlyJoinUninterruptibly(long timeout, TimeUnit unit) |
reinitialize | reinitialize() | void reinitialize() |
resultNow | resultNow() | Object resultNow() |
setForkJoinTaskTag | setForkJoinTaskTag(newValue) | short setForkJoinTaskTag(short newValue) |
state | state() | State state() |
tryUnfork | tryUnfork() | boolean tryUnfork() |
The methods and fields of Object are inherited.
ForkJoinWorkerThread#
class · extends Thread · java.util.concurrent.ForkJoinWorkerThread
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getPool | getPool() | ForkJoinPool getPool() |
getPoolIndex | getPoolIndex() | int getPoolIndex() |
getQueuedTaskCount | getQueuedTaskCount() | int getQueuedTaskCount() |
The methods and fields of Thread are inherited.
Future#
interface · java.util.concurrent.Future
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@@get | @@get([timeout,unit])@@get([ :timeout = v, :unit = v ]) | Object get(long timeout, TimeUnit unit) |
@get | @get() | Object get() |
cancel | cancel(mayInterruptIfRunning) | boolean cancel(boolean mayInterruptIfRunning) |
exceptionNow | exceptionNow() | Throwable exceptionNow() |
isCancelled | isCancelled() | boolean isCancelled() |
isDone | isDone() | boolean isDone() |
resultNow | resultNow() | Object resultNow() |
state | state() | State state() |
FutureState#
enum · extends Enum · java.util.concurrent.Future$State
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
RUNNING | State | constant · static | o.RUNNING |
SUCCESS | State | constant · static | o.SUCCESS |
FAILED | State | constant · static | o.FAILED |
CANCELLED | State | constant · static | o.CANCELLED |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static State valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static State[] values() |
The methods and fields of Enum are inherited.
FutureTask#
class · extends Object · java.util.concurrent.FutureTask
Implements: RunnableFuture
Constructors
new FutureTask(Callable callable) |
new FutureTask(Runnable runnable, Object result) |
Ring: new FutureTask(args) uses the constructor with the fewest parameters (at least one); new FutureTask makes the object with the constructor without parameters; the others: (new FutureTask).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@@get | @@get([timeout,unit])@@get([ :timeout = v, :unit = v ]) | Object get(long timeout, TimeUnit unit) |
@get | @get() | Object get() |
cancel | cancel(mayInterruptIfRunning) | boolean cancel(boolean mayInterruptIfRunning) |
exceptionNow | exceptionNow() | Throwable exceptionNow() |
isCancelled | isCancelled() | boolean isCancelled() |
isDone | isDone() | boolean isDone() |
resultNow | resultNow() | Object resultNow() |
run | run() | void run() |
state | state() | State state() |
The methods and fields of Object are inherited.
LinkedBlockingDeque#
class · extends AbstractQueue · java.util.concurrent.LinkedBlockingDeque
Implements: BlockingDeque, Serializable
Constructors
new LinkedBlockingDeque() |
new LinkedBlockingDeque(Collection c) |
new LinkedBlockingDeque(int capacity) |
Ring: new LinkedBlockingDeque(args) uses the constructor with the fewest parameters (at least one); new LinkedBlockingDeque makes the object with the constructor without parameters; the others: (new LinkedBlockingDeque).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Object poll(long timeout, TimeUnit unit) |
@pollFirst | @pollFirst([timeout,unit])@pollFirst([ :timeout = v, :unit = v ]) | Object pollFirst(long timeout, TimeUnit unit) |
@pollLast | @pollLast([timeout,unit])@pollLast([ :timeout = v, :unit = v ]) | Object pollLast(long timeout, TimeUnit unit) |
@put | @put(e) | void put(Object e) |
addFirst | addFirst(e) | void addFirst(Object e) |
addLast | addLast(e) | void addLast(Object e) |
descendingIterator | descendingIterator() | Iterator descendingIterator() |
drainTo | drainTo(c)drainTo([c,maxElements])drainTo([ :c = v, :maxElements = v ]) | int drainTo(Collection c)int drainTo(Collection c, int maxElements) |
getFirst | getFirst() | Object getFirst() |
getLast | getLast() | Object getLast() |
offer | offer(e)offer([e,timeout,unit])offer([ :e = v, :timeout = v, :unit = v ]) | boolean offer(Object e)boolean offer(Object e, long timeout, TimeUnit unit) |
offerFirst | offerFirst(e)offerFirst([e,timeout,unit])offerFirst([ :e = v, :timeout = v, :unit = v ]) | boolean offerFirst(Object e)boolean offerFirst(Object e, long timeout, TimeUnit unit) |
offerLast | offerLast(e)offerLast([e,timeout,unit])offerLast([ :e = v, :timeout = v, :unit = v ]) | boolean offerLast(Object e)boolean offerLast(Object e, long timeout, TimeUnit unit) |
peekFirst | peekFirst() | Object peekFirst() |
peekLast | peekLast() | Object peekLast() |
pollFirst | pollFirst() | Object pollFirst() |
pollLast | pollLast() | Object pollLast() |
pop | pop() | Object pop() |
push | push(e) | void push(Object e) |
putFirst | putFirst(e) | void putFirst(Object e) |
putLast | putLast(e) | void putLast(Object e) |
remainingCapacity | remainingCapacity() | int remainingCapacity() |
removeFirst | removeFirst() | Object removeFirst() |
removeFirstOccurrence | removeFirstOccurrence(o) | boolean removeFirstOccurrence(Object o) |
removeLast | removeLast() | Object removeLast() |
removeLastOccurrence | removeLastOccurrence(o) | boolean removeLastOccurrence(Object o) |
reversed | reversed() | Deque reversed() |
take | take() | Object take() |
takeFirst | takeFirst() | Object takeFirst() |
takeLast | takeLast() | Object takeLast() |
The methods and fields of AbstractQueue are inherited.
LinkedBlockingQueue#
class · extends AbstractQueue · java.util.concurrent.LinkedBlockingQueue
Implements: BlockingQueue, Serializable
Constructors
new LinkedBlockingQueue() |
new LinkedBlockingQueue(int capacity) |
new LinkedBlockingQueue(Collection c) |
Ring: new LinkedBlockingQueue(args) uses the constructor with the fewest parameters (at least one); new LinkedBlockingQueue makes the object with the constructor without parameters; the others: (new LinkedBlockingQueue).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Object poll(long timeout, TimeUnit unit) |
@put | @put(e) | void put(Object e) |
drainTo | drainTo(c)drainTo([c,maxElements])drainTo([ :c = v, :maxElements = v ]) | int drainTo(Collection c)int drainTo(Collection c, int maxElements) |
offer | offer(e)offer([e,timeout,unit])offer([ :e = v, :timeout = v, :unit = v ]) | boolean offer(Object e)boolean offer(Object e, long timeout, TimeUnit unit) |
remainingCapacity | remainingCapacity() | int remainingCapacity() |
take | take() | Object take() |
The methods and fields of AbstractQueue are inherited.
LinkedTransferQueue#
class · extends AbstractQueue · java.util.concurrent.LinkedTransferQueue
Implements: TransferQueue, Serializable
Constructors
new LinkedTransferQueue() |
new LinkedTransferQueue(Collection c) |
Ring: new LinkedTransferQueue(args) uses the constructor with the fewest parameters (at least one); new LinkedTransferQueue makes the object with the constructor without parameters; the others: (new LinkedTransferQueue).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Object poll(long timeout, TimeUnit unit) |
@put | @put(e) | void put(Object e) |
drainTo | drainTo(c)drainTo([c,maxElements])drainTo([ :c = v, :maxElements = v ]) | int drainTo(Collection c)int drainTo(Collection c, int maxElements) |
getWaitingConsumerCount | getWaitingConsumerCount() | int getWaitingConsumerCount() |
hasWaitingConsumer | hasWaitingConsumer() | boolean hasWaitingConsumer() |
offer | offer(e)offer([e,timeout,unit])offer([ :e = v, :timeout = v, :unit = v ]) | boolean offer(Object e)boolean offer(Object e, long timeout, TimeUnit unit) |
remainingCapacity | remainingCapacity() | int remainingCapacity() |
take | take() | Object take() |
transfer | transfer(e) | void transfer(Object e) |
tryTransfer | tryTransfer(e)tryTransfer([e,timeout,unit])tryTransfer([ :e = v, :timeout = v, :unit = v ]) | boolean tryTransfer(Object e)boolean tryTransfer(Object e, long timeout, TimeUnit unit) |
The methods and fields of AbstractQueue are inherited.
Phaser#
class · extends Object · java.util.concurrent.Phaser
Constructors
new Phaser() |
new Phaser(int parties) |
new Phaser(Phaser parent) |
new Phaser(Phaser parent, int parties) |
Ring: new Phaser(args) uses the constructor with the fewest parameters (at least one); new Phaser makes the object with the constructor without parameters; the others: (new Phaser).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
arrive | arrive() | int arrive() |
arriveAndAwaitAdvance | arriveAndAwaitAdvance() | int arriveAndAwaitAdvance() |
arriveAndDeregister | arriveAndDeregister() | int arriveAndDeregister() |
awaitAdvance | awaitAdvance(phase) | int awaitAdvance(int phase) |
awaitAdvanceInterruptibly | awaitAdvanceInterruptibly(phase)awaitAdvanceInterruptibly([phase,timeout,unit])awaitAdvanceInterruptibly([ :phase = v, :timeout = v, :unit = v ]) | int awaitAdvanceInterruptibly(int phase)int awaitAdvanceInterruptibly(int phase, long timeout, TimeUnit unit) |
bulkRegister | bulkRegister(parties) | int bulkRegister(int parties) |
forceTermination | forceTermination() | void forceTermination() |
getArrivedParties | getArrivedParties() | int getArrivedParties() |
getParent | getParent() | Phaser getParent() |
getPhase | getPhase() | int getPhase() |
getRegisteredParties | getRegisteredParties() | int getRegisteredParties() |
getRoot | getRoot() | Phaser getRoot() |
getUnarrivedParties | getUnarrivedParties() | int getUnarrivedParties() |
isTerminated | isTerminated() | boolean isTerminated() |
register | register() | int register() |
The methods and fields of Object are inherited.
PriorityBlockingQueue#
class · extends AbstractQueue · java.util.concurrent.PriorityBlockingQueue
Implements: BlockingQueue, Serializable
Constructors
new PriorityBlockingQueue() |
new PriorityBlockingQueue(Collection c) |
new PriorityBlockingQueue(int initialCapacity) |
new PriorityBlockingQueue(int initialCapacity, Comparator comparator) |
Ring: new PriorityBlockingQueue(args) uses the constructor with the fewest parameters (at least one); new PriorityBlockingQueue makes the object with the constructor without parameters; the others: (new PriorityBlockingQueue).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Object poll(long timeout, TimeUnit unit) |
@put | @put(e) | void put(Object e) |
comparator | comparator() | Comparator comparator() |
drainTo | drainTo(c)drainTo([c,maxElements])drainTo([ :c = v, :maxElements = v ]) | int drainTo(Collection c)int drainTo(Collection c, int maxElements) |
offer | offer(e)offer([e,timeout,unit])offer([ :e = v, :timeout = v, :unit = v ]) | boolean offer(Object e)boolean offer(Object e, long timeout, TimeUnit unit) |
remainingCapacity | remainingCapacity() | int remainingCapacity() |
take | take() | Object take() |
The methods and fields of AbstractQueue are inherited.
RecursiveAction#
abstract · extends ForkJoinTask · java.util.concurrent.RecursiveAction
The methods and fields of ForkJoinTask are inherited.
RecursiveTask#
abstract · extends ForkJoinTask · java.util.concurrent.RecursiveTask
The methods and fields of ForkJoinTask are inherited.
RejectedExecutionException#
class · extends RuntimeException · java.util.concurrent.RejectedExecutionException
Constructors
new RejectedExecutionException() |
new RejectedExecutionException(Throwable cause) |
new RejectedExecutionException(String message) |
new RejectedExecutionException(String message, Throwable cause) |
Ring: new RejectedExecutionException(args) uses the constructor with the fewest parameters (at least one); new RejectedExecutionException makes the object with the constructor without parameters; the others: (new RejectedExecutionException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of RuntimeException are inherited.
RejectedExecutionHandler#
interface · java.util.concurrent.RejectedExecutionHandler
Methods
| Method | Ring call | Java overloads |
|---|---|---|
rejectedExecution | rejectedExecution(r,executor) | void rejectedExecution(Runnable r, ThreadPoolExecutor executor) |
RunnableFuture#
interface · java.util.concurrent.RunnableFuture
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@@get | @@get([timeout,unit])@@get([ :timeout = v, :unit = v ]) | Object get(long timeout, TimeUnit unit) |
@get | @get() | Object get() |
cancel | cancel(mayInterruptIfRunning) | boolean cancel(boolean mayInterruptIfRunning) |
exceptionNow | exceptionNow() | Throwable exceptionNow() |
isCancelled | isCancelled() | boolean isCancelled() |
isDone | isDone() | boolean isDone() |
resultNow | resultNow() | Object resultNow() |
run | run() | void run() |
state | state() | State state() |
RunnableScheduledFuture#
interface · java.util.concurrent.RunnableScheduledFuture
Extends: RunnableFuture, ScheduledFuture
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@@get | @@get([timeout,unit])@@get([ :timeout = v, :unit = v ]) | Object get(long timeout, TimeUnit unit) |
@get | @get() | Object get() |
cancel | cancel(mayInterruptIfRunning) | boolean cancel(boolean mayInterruptIfRunning) |
compareTo | compareTo(o) | int compareTo(Object o) |
exceptionNow | exceptionNow() | Throwable exceptionNow() |
getDelay | getDelay(unit) | long getDelay(TimeUnit unit) |
isCancelled | isCancelled() | boolean isCancelled() |
isDone | isDone() | boolean isDone() |
isPeriodic | isPeriodic() | boolean isPeriodic() |
resultNow | resultNow() | Object resultNow() |
run | run() | void run() |
state | state() | State state() |
ScheduledExecutorService#
interface · java.util.concurrent.ScheduledExecutorService
Extends: ExecutorService
Methods
| Method | Ring call | Java overloads |
|---|---|---|
awaitTermination | awaitTermination(timeout,unit) | boolean awaitTermination(long timeout, TimeUnit unit) |
close | close() | void close() |
execute | execute(command) | void execute(Runnable command) |
invokeAll | invokeAll(tasks)invokeAll([tasks,timeout,unit])invokeAll([ :tasks = v, :timeout = v, :unit = v ]) | List invokeAll(Collection tasks)List invokeAll(Collection tasks, long timeout, TimeUnit unit) |
invokeAny | invokeAny(tasks)invokeAny([tasks,timeout,unit])invokeAny([ :tasks = v, :timeout = v, :unit = v ]) | Object invokeAny(Collection tasks)Object invokeAny(Collection tasks, long timeout, TimeUnit unit) |
isShutdown | isShutdown() | boolean isShutdown() |
isTerminated | isTerminated() | boolean isTerminated() |
schedule | schedule(command,delay,unit) | ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit)ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) |
scheduleAtFixedRate | scheduleAtFixedRate(command,initialDelay,period,unit) | ScheduledFuture scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) |
scheduleWithFixedDelay | scheduleWithFixedDelay(command,initialDelay,delay,unit) | ScheduledFuture scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) |
shutdown | shutdown() | void shutdown() |
shutdownNow | shutdownNow() | List shutdownNow() |
submit | submit(task)submit([task,result])submit([ :task = v, :result = v ]) | Future submit(Runnable task)Future submit(Callable task)Future submit(Runnable task, Object result) |
ScheduledFuture#
interface · java.util.concurrent.ScheduledFuture
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@@get | @@get([timeout,unit])@@get([ :timeout = v, :unit = v ]) | Object get(long timeout, TimeUnit unit) |
@get | @get() | Object get() |
cancel | cancel(mayInterruptIfRunning) | boolean cancel(boolean mayInterruptIfRunning) |
compareTo | compareTo(o) | int compareTo(Object o) |
exceptionNow | exceptionNow() | Throwable exceptionNow() |
getDelay | getDelay(unit) | long getDelay(TimeUnit unit) |
isCancelled | isCancelled() | boolean isCancelled() |
isDone | isDone() | boolean isDone() |
resultNow | resultNow() | Object resultNow() |
state | state() | State state() |
ScheduledThreadPoolExecutor#
class · extends ThreadPoolExecutor · java.util.concurrent.ScheduledThreadPoolExecutor
Implements: ScheduledExecutorService
Constructors
new ScheduledThreadPoolExecutor(int corePoolSize) |
new ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory) |
new ScheduledThreadPoolExecutor(int corePoolSize, RejectedExecutionHandler handler) |
new ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler) |
Ring: new ScheduledThreadPoolExecutor(args) uses the constructor with the fewest parameters (at least one); new ScheduledThreadPoolExecutor makes the object with the constructor without parameters; the others: (new ScheduledThreadPoolExecutor).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getContinueExistingPeriodicTasksAfterShutdownPolicy | getContinueExistingPeriodicTasksAfterShutdownPolicy() | boolean getContinueExistingPeriodicTasksAfterShutdownPolicy() |
getExecuteExistingDelayedTasksAfterShutdownPolicy | getExecuteExistingDelayedTasksAfterShutdownPolicy() | boolean getExecuteExistingDelayedTasksAfterShutdownPolicy() |
getRemoveOnCancelPolicy | getRemoveOnCancelPolicy() | boolean getRemoveOnCancelPolicy() |
schedule | schedule(callable,delay,unit) | ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit)ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit) |
scheduleAtFixedRate | scheduleAtFixedRate(command,initialDelay,period,unit) | ScheduledFuture scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) |
scheduleWithFixedDelay | scheduleWithFixedDelay(command,initialDelay,delay,unit) | ScheduledFuture scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) |
setContinueExistingPeriodicTasksAfterShutdownPolicy | setContinueExistingPeriodicTasksAfterShutdownPolicy(value) | void setContinueExistingPeriodicTasksAfterShutdownPolicy(boolean value) |
setExecuteExistingDelayedTasksAfterShutdownPolicy | setExecuteExistingDelayedTasksAfterShutdownPolicy(value) | void setExecuteExistingDelayedTasksAfterShutdownPolicy(boolean value) |
setRemoveOnCancelPolicy | setRemoveOnCancelPolicy(value) | void setRemoveOnCancelPolicy(boolean value) |
The methods and fields of ThreadPoolExecutor are inherited.
Semaphore#
class · extends Object · java.util.concurrent.Semaphore
Implements: Serializable
Constructors
new Semaphore(int permits) |
new Semaphore(int permits, boolean fair) |
Ring: new Semaphore(args) uses the constructor with the fewest parameters (at least one); new Semaphore makes the object with the constructor without parameters; the others: (new Semaphore).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@acquire | @acquire(permits) | void acquire(int permits) |
@acquireUninterruptibly | @acquireUninterruptibly(permits) | void acquireUninterruptibly(int permits) |
@release | @release(permits) | void release(int permits) |
@tryAcquire | @tryAcquire(permits)@tryAcquire([timeout,unit])@tryAcquire([ :timeout = v, :unit = v ])@tryAcquire([permits,timeout,unit])@tryAcquire([ :permits = v, :timeout = v, :unit = v ]) | boolean tryAcquire(int permits)boolean tryAcquire(long timeout, TimeUnit unit)boolean tryAcquire(int permits, long timeout, TimeUnit unit) |
acquire | acquire() | void acquire() |
acquireUninterruptibly | acquireUninterruptibly() | void acquireUninterruptibly() |
availablePermits | availablePermits() | int availablePermits() |
drainPermits | drainPermits() | int drainPermits() |
getQueueLength | getQueueLength() | int getQueueLength() |
hasQueuedThreads | hasQueuedThreads() | boolean hasQueuedThreads() |
isFair | isFair() | boolean isFair() |
release | release() | void release() |
tryAcquire | tryAcquire() | boolean tryAcquire() |
The methods and fields of Object are inherited.
StructuredTaskScope#
interface · java.util.concurrent.StructuredTaskScope
Extends: AutoCloseable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@open | @open(joiner)@open([joiner,configFunction])@open([ :joiner = v, :configFunction = v ]) | static StructuredTaskScope open(Joiner joiner)static StructuredTaskScope open(Joiner joiner, Function configFunction) |
close | close() | void close() |
fork | fork(task) | Subtask fork(Runnable task)Subtask fork(Callable task) |
isCancelled | isCancelled() | boolean isCancelled() |
join | join() | Object join() |
open | open() | static StructuredTaskScope open() |
StructuredTaskScopeConfiguration#
interface · java.util.concurrent.StructuredTaskScope$Configuration
Methods
| Method | Ring call | Java overloads |
|---|---|---|
withName | withName(name) | Configuration withName(String name) |
withThreadFactory | withThreadFactory(threadFactory) | Configuration withThreadFactory(ThreadFactory threadFactory) |
withTimeout | withTimeout(timeout) | Configuration withTimeout(Duration timeout) |
StructuredTaskScopeFailedException#
class final · extends RuntimeException · java.util.concurrent.StructuredTaskScope$FailedException
The methods and fields of RuntimeException are inherited.
StructuredTaskScopeJoiner#
interface · java.util.concurrent.StructuredTaskScope$Joiner
Methods
| Method | Ring call | Java overloads |
|---|---|---|
allSuccessfulOrThrow | allSuccessfulOrThrow() | static Joiner allSuccessfulOrThrow() |
allUntil | allUntil(isDone) | static Joiner allUntil(Predicate isDone) |
anySuccessfulResultOrThrow | anySuccessfulResultOrThrow() | static Joiner anySuccessfulResultOrThrow() |
awaitAll | awaitAll() | static Joiner awaitAll() |
awaitAllSuccessfulOrThrow | awaitAllSuccessfulOrThrow() | static Joiner awaitAllSuccessfulOrThrow() |
onComplete | onComplete(subtask) | boolean onComplete(Subtask subtask) |
onFork | onFork(subtask) | boolean onFork(Subtask subtask) |
result | result() | Object result() |
StructuredTaskScopeSubtask#
interface · java.util.concurrent.StructuredTaskScope$Subtask
Extends: Supplier
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get() | Object get() |
exception | exception() | Throwable exception() |
state | state() | State state() |
StructuredTaskScopeSubtaskState#
enum · extends Enum · java.util.concurrent.StructuredTaskScope$Subtask$State
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
UNAVAILABLE | State | constant · static | o.UNAVAILABLE |
SUCCESS | State | constant · static | o.SUCCESS |
FAILED | State | constant · static | o.FAILED |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static State valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static State[] values() |
The methods and fields of Enum are inherited.
StructuredTaskScopeTimeoutException#
class final · extends RuntimeException · java.util.concurrent.StructuredTaskScope$TimeoutException
The methods and fields of RuntimeException are inherited.
StructureViolationException#
class final · extends RuntimeException · java.util.concurrent.StructureViolationException
Constructors
new StructureViolationException() |
new StructureViolationException(String message) |
Ring: new StructureViolationException(args) uses the constructor with the fewest parameters (at least one); new StructureViolationException makes the object with the constructor without parameters; the others: (new StructureViolationException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of RuntimeException are inherited.
SubmissionPublisher#
class · extends Object · java.util.concurrent.SubmissionPublisher
Implements: FlowPublisher, AutoCloseable
Constructors
new SubmissionPublisher() |
new SubmissionPublisher(Executor executor, int maxBufferCapacity) |
new SubmissionPublisher(Executor executor, int maxBufferCapacity, BiConsumer handler) |
Ring: new SubmissionPublisher(args) uses the constructor with the fewest parameters (at least one); new SubmissionPublisher makes the object with the constructor without parameters; the others: (new SubmissionPublisher).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
closeExceptionally | closeExceptionally(error) | void closeExceptionally(Throwable error) |
consume | consume(consumer) | CompletableFuture consume(Consumer consumer) |
estimateMaximumLag | estimateMaximumLag() | int estimateMaximumLag() |
estimateMinimumDemand | estimateMinimumDemand() | long estimateMinimumDemand() |
getClosedException | getClosedException() | Throwable getClosedException() |
getExecutor | getExecutor() | Executor getExecutor() |
getMaxBufferCapacity | getMaxBufferCapacity() | int getMaxBufferCapacity() |
getNumberOfSubscribers | getNumberOfSubscribers() | int getNumberOfSubscribers() |
getSubscribers | getSubscribers() | List getSubscribers() |
hasSubscribers | hasSubscribers() | boolean hasSubscribers() |
isClosed | isClosed() | boolean isClosed() |
isSubscribed | isSubscribed(subscriber) | boolean isSubscribed(Subscriber subscriber) |
offer | offer([item,onDrop])offer([ :item = v, :onDrop = v ])offer([item,timeout,unit,onDrop])offer([ :item = v, :timeout = v, :unit = v, :onDrop = v ]) | int offer(Object item, BiPredicate onDrop)int offer(Object item, long timeout, TimeUnit unit, BiPredicate onDrop) |
submit | submit(item) | int submit(Object item) |
subscribe | subscribe(subscriber) | void subscribe(Subscriber subscriber) |
The methods and fields of Object are inherited.
SynchronousQueue#
class · extends AbstractQueue · java.util.concurrent.SynchronousQueue
Implements: BlockingQueue, Serializable
Constructors
new SynchronousQueue() |
new SynchronousQueue(boolean fair) |
Ring: new SynchronousQueue(args) uses the constructor with the fewest parameters (at least one); new SynchronousQueue makes the object with the constructor without parameters; the others: (new SynchronousQueue).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Object poll(long timeout, TimeUnit unit) |
@put | @put(e) | void put(Object e) |
drainTo | drainTo(c)drainTo([c,maxElements])drainTo([ :c = v, :maxElements = v ]) | int drainTo(Collection c)int drainTo(Collection c, int maxElements) |
offer | offer(e)offer([e,timeout,unit])offer([ :e = v, :timeout = v, :unit = v ]) | boolean offer(Object e)boolean offer(Object e, long timeout, TimeUnit unit) |
remainingCapacity | remainingCapacity() | int remainingCapacity() |
take | take() | Object take() |
The methods and fields of AbstractQueue are inherited.
ThreadFactory#
interface · java.util.concurrent.ThreadFactory
Methods
| Method | Ring call | Java overloads |
|---|---|---|
newThread | newThread(r) | Thread newThread(Runnable r) |
ThreadLocalRandom#
class final · extends Random · java.util.concurrent.ThreadLocalRandom
Methods
| Method | Ring call | Java overloads |
|---|---|---|
current | current() | static ThreadLocalRandom current() |
The methods and fields of Random are inherited.
ThreadPoolExecutor#
class · extends AbstractExecutorService · java.util.concurrent.ThreadPoolExecutor
Constructors
new ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue) |
new ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, RejectedExecutionHandler handler) |
new ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, ThreadFactory threadFactory) |
new ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) |
Ring: new ThreadPoolExecutor(args) uses the constructor with the fewest parameters (at least one); new ThreadPoolExecutor makes the object with the constructor without parameters; the others: (new ThreadPoolExecutor).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
allowCoreThreadTimeOut | allowCoreThreadTimeOut(value) | void allowCoreThreadTimeOut(boolean value) |
allowsCoreThreadTimeOut | allowsCoreThreadTimeOut() | boolean allowsCoreThreadTimeOut() |
getActiveCount | getActiveCount() | int getActiveCount() |
getCompletedTaskCount | getCompletedTaskCount() | long getCompletedTaskCount() |
getCorePoolSize | getCorePoolSize() | int getCorePoolSize() |
getKeepAliveTime | getKeepAliveTime(unit) | long getKeepAliveTime(TimeUnit unit) |
getLargestPoolSize | getLargestPoolSize() | int getLargestPoolSize() |
getMaximumPoolSize | getMaximumPoolSize() | int getMaximumPoolSize() |
getPoolSize | getPoolSize() | int getPoolSize() |
getQueue | getQueue() | BlockingQueue getQueue() |
getRejectedExecutionHandler | getRejectedExecutionHandler() | RejectedExecutionHandler getRejectedExecutionHandler() |
getTaskCount | getTaskCount() | long getTaskCount() |
getThreadFactory | getThreadFactory() | ThreadFactory getThreadFactory() |
isTerminating | isTerminating() | boolean isTerminating() |
prestartAllCoreThreads | prestartAllCoreThreads() | int prestartAllCoreThreads() |
prestartCoreThread | prestartCoreThread() | boolean prestartCoreThread() |
purge | purge() | void purge() |
remove | remove(task) | boolean remove(Runnable task) |
setCorePoolSize | setCorePoolSize(corePoolSize) | void setCorePoolSize(int corePoolSize) |
setKeepAliveTime | setKeepAliveTime(time,unit) | void setKeepAliveTime(long time, TimeUnit unit) |
setMaximumPoolSize | setMaximumPoolSize(maximumPoolSize) | void setMaximumPoolSize(int maximumPoolSize) |
setRejectedExecutionHandler | setRejectedExecutionHandler(handler) | void setRejectedExecutionHandler(RejectedExecutionHandler handler) |
setThreadFactory | setThreadFactory(threadFactory) | void setThreadFactory(ThreadFactory threadFactory) |
The methods and fields of AbstractExecutorService are inherited.
ThreadPoolExecutorAbortPolicy#
class · extends Object · java.util.concurrent.ThreadPoolExecutor$AbortPolicy
Implements: RejectedExecutionHandler
Constructors
new ThreadPoolExecutorAbortPolicy() |
Ring: new ThreadPoolExecutorAbortPolicy(args) uses the constructor with the fewest parameters (at least one); new ThreadPoolExecutorAbortPolicy makes the object with the constructor without parameters; the others: (new ThreadPoolExecutorAbortPolicy).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
rejectedExecution | rejectedExecution(r,e) | void rejectedExecution(Runnable r, ThreadPoolExecutor e) |
The methods and fields of Object are inherited.
ThreadPoolExecutorCallerRunsPolicy#
class · extends Object · java.util.concurrent.ThreadPoolExecutor$CallerRunsPolicy
Implements: RejectedExecutionHandler
Constructors
new ThreadPoolExecutorCallerRunsPolicy() |
Ring: new ThreadPoolExecutorCallerRunsPolicy(args) uses the constructor with the fewest parameters (at least one); new ThreadPoolExecutorCallerRunsPolicy makes the object with the constructor without parameters; the others: (new ThreadPoolExecutorCallerRunsPolicy).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
rejectedExecution | rejectedExecution(r,e) | void rejectedExecution(Runnable r, ThreadPoolExecutor e) |
The methods and fields of Object are inherited.
ThreadPoolExecutorDiscardOldestPolicy#
class · extends Object · java.util.concurrent.ThreadPoolExecutor$DiscardOldestPolicy
Implements: RejectedExecutionHandler
Constructors
new ThreadPoolExecutorDiscardOldestPolicy() |
Ring: new ThreadPoolExecutorDiscardOldestPolicy(args) uses the constructor with the fewest parameters (at least one); new ThreadPoolExecutorDiscardOldestPolicy makes the object with the constructor without parameters; the others: (new ThreadPoolExecutorDiscardOldestPolicy).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
rejectedExecution | rejectedExecution(r,e) | void rejectedExecution(Runnable r, ThreadPoolExecutor e) |
The methods and fields of Object are inherited.
ThreadPoolExecutorDiscardPolicy#
class · extends Object · java.util.concurrent.ThreadPoolExecutor$DiscardPolicy
Implements: RejectedExecutionHandler
Constructors
new ThreadPoolExecutorDiscardPolicy() |
Ring: new ThreadPoolExecutorDiscardPolicy(args) uses the constructor with the fewest parameters (at least one); new ThreadPoolExecutorDiscardPolicy makes the object with the constructor without parameters; the others: (new ThreadPoolExecutorDiscardPolicy).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
rejectedExecution | rejectedExecution(r,e) | void rejectedExecution(Runnable r, ThreadPoolExecutor e) |
The methods and fields of Object are inherited.
TimeoutException#
class · extends Exception · java.util.concurrent.TimeoutException
Constructors
new TimeoutException() |
new TimeoutException(String message) |
Ring: new TimeoutException(args) uses the constructor with the fewest parameters (at least one); new TimeoutException makes the object with the constructor without parameters; the others: (new TimeoutException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Exception are inherited.
TimeUnit#
enum · extends Enum · java.util.concurrent.TimeUnit
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
NANOSECONDS | TimeUnit | constant · static | o.NANOSECONDS |
MICROSECONDS | TimeUnit | constant · static | o.MICROSECONDS |
MILLISECONDS | TimeUnit | constant · static | o.MILLISECONDS |
SECONDS | TimeUnit | constant · static | o.SECONDS |
MINUTES | TimeUnit | constant · static | o.MINUTES |
HOURS | TimeUnit | constant · static | o.HOURS |
DAYS | TimeUnit | constant · static | o.DAYS |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
convert | convert(duration)convert([sourceDuration,sourceUnit])convert([ :sourceDuration = v, :sourceUnit = v ]) | long convert(Duration duration)long convert(long sourceDuration, TimeUnit sourceUnit) |
of | of(chronoUnit) | static TimeUnit of(ChronoUnit chronoUnit) |
sleep | sleep(timeout) | void sleep(long timeout) |
timedJoin | timedJoin(thread,timeout) | void timedJoin(Thread thread, long timeout) |
timedWait | timedWait(obj,timeout) | void timedWait(Object obj, long timeout) |
toChronoUnit | toChronoUnit() | ChronoUnit toChronoUnit() |
toDays | toDays(duration) | long toDays(long duration) |
toHours | toHours(duration) | long toHours(long duration) |
toMicros | toMicros(duration) | long toMicros(long duration) |
toMillis | toMillis(duration) | long toMillis(long duration) |
toMinutes | toMinutes(duration) | long toMinutes(long duration) |
toNanos | toNanos(duration) | long toNanos(long duration) |
toSeconds | toSeconds(duration) | long toSeconds(long duration) |
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static TimeUnit valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static TimeUnit[] values() |
The methods and fields of Enum are inherited.
TransferQueue#
interface · java.util.concurrent.TransferQueue
Extends: BlockingQueue
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(Consumer action) |
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | Object poll(long timeout, TimeUnit unit) |
@put | @put(e) | void put(Object e) |
@remove | @remove(o) | boolean remove(Object o) |
@toArray | @toArray(a) | Object[] toArray(Object[] a)Object[] toArray(IntFunction generator) |
add | add(e) | boolean add(Object e) |
addAll | addAll(c) | boolean addAll(Collection c) |
clear | clear() | void clear() |
contains | contains(o) | boolean contains(Object o) |
containsAll | containsAll(c) | boolean containsAll(Collection c) |
drainTo | drainTo(c)drainTo([c,maxElements])drainTo([ :c = v, :maxElements = v ]) | int drainTo(Collection c)int drainTo(Collection c, int maxElements) |
element | element() | Object element() |
equals | equals(o) | boolean equals(Object o) |
getWaitingConsumerCount | getWaitingConsumerCount() | int getWaitingConsumerCount() |
hashCode | hashCode() | int hashCode() |
hasWaitingConsumer | hasWaitingConsumer() | boolean hasWaitingConsumer() |
isEmpty | isEmpty() | boolean isEmpty() |
iterator | iterator() | Iterator iterator() |
offer | offer(e)offer([e,timeout,unit])offer([ :e = v, :timeout = v, :unit = v ]) | boolean offer(Object e)boolean offer(Object e, long timeout, TimeUnit unit) |
parallelStream | parallelStream() | Stream parallelStream() |
peek | peek() | Object peek() |
poll | poll() | Object poll() |
remainingCapacity | remainingCapacity() | int remainingCapacity() |
remove | remove() | Object remove() |
removeAll | removeAll(c) | boolean removeAll(Collection c) |
removeIf | removeIf(filter) | boolean removeIf(Predicate filter) |
retainAll | retainAll(c) | boolean retainAll(Collection c) |
size | size() | int size() |
spliterator | spliterator() | Spliterator spliterator() |
stream | stream() | Stream stream() |
take | take() | Object take() |
toArray | toArray() | Object[] toArray() |
transfer | transfer(e) | void transfer(Object e) |
tryTransfer | tryTransfer(e)tryTransfer([e,timeout,unit])tryTransfer([ :e = v, :timeout = v, :unit = v ]) | boolean tryTransfer(Object e)boolean tryTransfer(Object e, long timeout, TimeUnit unit) |